function fade()
	local lights = script.Parent:GetChildren("SpotLight")
	
	for x = 27, 0, -3 do
	for i = 1, #lights do
		lights[i].Range = x
		
	end
end
end
script.Parent.Part.ClickDetector.MouseClick:connect(fade)

3 comments

0

What doesn't work about it? Is there an error printed?

0

No error, I just can't get the outcome I want from it. (just won't work)

0

maybe its the lighting system not updating correctly