I want to make a flashing pointlight but I want to also have an On and Off switch with it. Coding:
local light = game.Workspace.LightBulb.Pointlight
while true do
light.enabled = false
light.enabled = true
wait (0.2)
light.enabled = true
end
Please reply ASAP. Thanks.

3 comments
Please indent properly.
And you can simpligy lines 6-10 by just saying "on = not on".
Why do you have line 19? light is already enabled.