--StrobeFunctions-----------------------------------------

script.Parent.Configuration.Strobe.Changed:connect(function()
while script.Parent.Configuration.Strobe.Value == 1 do
		wait(0.01)
colorval = script.Parent.Configuration.Colour.Value
Model.Configuration.LampStatus.Value = 0 
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(Color3.new(35/255,35/255,35/255))
		end
					
end
wait(0.01)

Model.Configuration.LampStatus.Value = 1
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(colorval)
		end
					
end

end	
	
while script.Parent.Configuration.Strobe.Value == 2 do
		wait(0.05)
colorval = script.Parent.Configuration.Colour.Value
Model.Configuration.LampStatus.Value = 0 
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(Color3.new(35/255,35/255,35/255))
		end
					
end
wait(0.05)

Model.Configuration.LampStatus.Value = 1
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(colorval)
		end
					
end

end	

while script.Parent.Configuration.Strobe.Value == 3 do
		wait(1)
colorval = script.Parent.Configuration.Colour.Value
Model.Configuration.LampStatus.Value = 0 
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(Color3.new(35/255,35/255,35/255))
		end
					
end
wait(1)

Model.Configuration.LampStatus.Value = 1
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(colorval)
		end
					
end

end	

while script.Parent.Configuration.Strobe.Value == 4 do
		wait(math.random())
colorval = script.Parent.Configuration.Colour.Value

Model.Configuration.LampStatus.Value = 0
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(Color3.new(35/255,35/255,35/255))
		end
					
end
wait(math.random())


Model.Configuration.LampStatus.Value = 1
for i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" then
			v.BrickColor = BrickColor.new(colorval)

		end
					
end

end	

end)