script.Parent.Configuration.LampStatus.Changed:connect(function()if script.Parent.Configuration.LampStatus.Value==1 then Model.Tilt.Lamp.SpotLight.Brightness=.1 Model.Tilt.Light.Transparency=.9 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.2 Model.Tilt.Light.Transparency=.8 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.3 Model.Tilt.Light.Transparency=.7 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.4 Model.Tilt.Light.Transparency=.6 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.5 Model.Tilt.Light.Transparency=.5 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.6 Model.Tilt.Light.Transparency=.4 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.7 Model.Tilt.Light.Transparency=.3 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.8 Model.Tilt.Light.Transparency=.2 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.9 Model.Tilt.Light.Transparency=.1 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=1 Model.Tilt.Light.Transparency=0 for g,T in pairs(Model.Tilt:GetChildren())do if T.Name=="\076\105\103\104\116"and T:isA("\080\097\114\116")then end end else Model.Tilt.Lamp.SpotLight.Brightness=.9 Model.Tilt.Light.Transparency=0 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.8 Model.Tilt.Light.Transparency=.1 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.7 Model.Tilt.Light.Transparency=.2 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.6 Model.Tilt.Light.Transparency=.3 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.5 Model.Tilt.Light.Transparency=.4 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.4 Model.Tilt.Light.Transparency=.5 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.3 Model.Tilt.Light.Transparency=.6 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.2 Model.Tilt.Light.Transparency=.7 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=.1 Model.Tilt.Light.Transparency=.8 wait(.1)Model.Tilt.Lamp.SpotLight.Brightness=0 Model.Tilt.Light.Transparency=1 for g,T in pairs(Model.Tilt:GetChildren())do if T.Name=="\076\097\109\112"and T:isA("\080\097\114\116")then end end end end)
--Lamp Controls -------------------------------------------
script.Parent.Configuration.LampStatus.Changed:connect(function()
	if script.Parent.Configuration.LampStatus.Value == 1 then
		Model.Tilt.Lamp.SpotLight.Brightness = 0.1
		Model.Tilt.Light.Transparency = 0.9
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.2
		Model.Tilt.Light.Transparency = 0.8
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.3
		Model.Tilt.Light.Transparency = 0.7
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.4
		Model.Tilt.Light.Transparency = 0.6
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.5
		Model.Tilt.Light.Transparency = 0.5
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.6
		Model.Tilt.Light.Transparency = 0.4
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.7
		Model.Tilt.Light.Transparency = 0.3
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.8
		Model.Tilt.Light.Transparency = 0.2
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.9
		Model.Tilt.Light.Transparency = 0.1
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 1
		Model.Tilt.Light.Transparency = 0

		for i, v in pairs(Model.Tilt:GetChildren()) do
			if v.Name == "Light" and v:isA("Part") then
			end
		end
	else
		Model.Tilt.Lamp.SpotLight.Brightness = 0.9
		Model.Tilt.Light.Transparency = 0
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.8
		Model.Tilt.Light.Transparency = 0.1
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.7
		Model.Tilt.Light.Transparency = 0.2
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.6
		Model.Tilt.Light.Transparency = 0.3
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.5
		Model.Tilt.Light.Transparency = 0.4
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.4
		Model.Tilt.Light.Transparency = 0.5
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.3
		Model.Tilt.Light.Transparency = 0.6
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.2
		Model.Tilt.Light.Transparency = 0.7
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0.1
		Model.Tilt.Light.Transparency = 0.8
		wait(0.1)
		Model.Tilt.Lamp.SpotLight.Brightness = 0
		Model.Tilt.Light.Transparency = 1

		for i, v in pairs(Model.Tilt:GetChildren()) do
			if v.Name == "Lamp" and v:isA("Part") then
			end
		end
	end
end)
