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

How to make a strobe light script?

Asked by 10 years ago

So, I have a little white block called 'Strobe' and I have a pointlight entitled 'strobe light' which makes the block light up. Using a script, can I make the light flash on/off to create a strobe light effect? It should probably go on every .2 second and turn off the same amount of time after. How can I do that?? EDIT Does this look right?

Game.Workspace.Strobe.strobelight.Enabled = Strobelight
Strobelight = true
wait(.2)
Strobelight = false
wait(.2)

1 answer

Log in to vote
0
Answered by
Freemium 110
10 years ago

Put inside the pointlight/spotlight

while true do
    wait(.2)
    script.Parent.Enabled = false
    wait(.2)
    script.Parent.Enabled = true
end
0
Thanks Antharaziia 75 — 10y
Ad

Answer this question