script.Parent.Configuration.Strobe.Changed:connect(function()while script.Parent.Configuration.Strobe.Value==1 do wait(.01)colorval=script.Parent.Configuration.Colour.Value Model.Configuration.LampStatus.Value=0 for w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.BrickColor=BrickColor.new(Color3.new(.13725490196078,.13725490196078,.13725490196078))end end wait(.01)Model.Configuration.LampStatus.Value=1 for w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.BrickColor=BrickColor.new(colorval)end end end while script.Parent.Configuration.Strobe.Value==2 do wait(.05)colorval=script.Parent.Configuration.Colour.Value Model.Configuration.LampStatus.Value=0 for w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.BrickColor=BrickColor.new(Color3.new(.13725490196078,.13725490196078,.13725490196078))end end wait(.05)Model.Configuration.LampStatus.Value=1 for w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.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 w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.BrickColor=BrickColor.new(Color3.new(.13725490196078,.13725490196078,.13725490196078))end end wait(1)Model.Configuration.LampStatus.Value=1 for w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.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 w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.BrickColor=BrickColor.new(Color3.new(.13725490196078,.13725490196078,.13725490196078))end end wait(math.random())Model.Configuration.LampStatus.Value=1 for w,G in pairs(Model.Tilt:GetChildren())do if G.Name=="\076\097\109\112"then G.BrickColor=BrickColor.new(colorval)end end end end)
--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)
