Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Flashing lights not working, how do I make them flash?

Asked by 10 years ago
light = script.Parent.SpotLight

while true do
light.Brightness = 19
wait (1)
light.Brightness = 0
end

This isn't working for me and it's quite frustrating! Please can someone help me.

1 answer

Log in to vote
0
Answered by
TofuBytes 500 Moderation Voter
10 years ago

It should work. It can only work with one light unless you indicate more lights with different names.

local light = script.Parent.SpotLight

while true do
light.Brightness = 19
wait(1)
light.Brightness = 0
wait(1)
end
Ad

Answer this question