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

How to make a Flashing lights ?

Asked by 4 years ago

Can someone help me? I want make a Flashing lights that will make point light blink per a custom time. Just like the one in breaking point.

0
I'd also like to learn how to do this j_osephx 3 — 4y

1 answer

Log in to vote
0
Answered by
Alphexus 498 Moderation Voter
4 years ago

They probably have a PointLight Instance in a part and they change the Enabled property.

while wait(math.random(2,4)) do -- //  Wait a random number of seconds between 2 and 4.
    for i = 1, math.random(2,5) do  -- // A random number of blinks.
        PointLight.Enabled = true
        wait(0.25)
        PointLight.Enabled = false
    end
end
0
while wait() do is bad practice. programmerHere 371 — 4y
0
wait() without any indicated second(s) is a bad practice in most cases. There is nothing wrong with while wait(n) do. Who ever told you that has gotten false information. Alphexus 498 — 4y
0
There is something wrong with while wait() do bruh, it's DEPRECATED, misleading, unclear, and the behavior of this idiom ain't even documented bruh. You probably don't even know why it works programmerHere 371 — 4y
0
Show me where you got the information from, what your saying aren't facts unless you have some kind of evidence from the documentation to back it up. Or even some intellectual person on the DevForums. Alphexus 498 — 4y
Ad

Answer this question