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

how do i make a point light turn on and off quickly?

Asked by 10 years ago

how do i make a script where a point light turns on and off quickly like a strobe light

please comment below what you think

thanks

2 answers

Log in to vote
1
Answered by 10 years ago

this is another way:

while true do
script.Parent.PointLight.Enabled = true
wait(.1)
script.Parent.PointLight.Enabled =false
end
Ad
Log in to vote
2
Answered by 10 years ago

Well, to make it flicker off and on like a strobe, you'd probly change the wait() time, here are two examples;

wait(.01) --This waits 0.01 Mili-seconds.
wait(1/44) --This waits Mili-seconds too, but a only waits 0.022727272727273 Mili-seconds.

I hope this helped!

Answer this question