--Lamp Controls -------------------------------------------

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)