Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a strobe light script?

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

✓ Accepted answer

Put inside the pointlight/spotlight

while true do
	wait(.2)
	script.Parent.Enabled = false
	wait(.2)
	script.Parent.Enabled = true
end

1 comment

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.