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 u,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 u,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)

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 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 = .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 i,v in pairs(Model.Tilt:GetChildren()) do 
		if v.Name == "Lamp" and v:isA("Part") then
			
		end
			end
					
	end
end)