--






sp=script.Parent

sp.Luminate.SourceValueChanged:connect(function(val)
	if val==1 then
		sp.BrickColor=BrickColor.new("White")
		sp.Transparency=0
		sp.PointLight.Enabled=true
	elseif val==0 then
		sp.BrickColor=BrickColor.new("Really black")
		sp.Transparency=.5
		sp.PointLight.Enabled=false
	end
end)

script.Parent.Configuration.Brightness.Changed:connect(function()
script.Parent.PointLight.Range = script.Parent.Configuration.Brightness.Value
script.Parent.PointLight.Brightness = 1+script.Parent.Configuration.Brightness.Value/300
end)



