#just a flickering light

1 messages · Page 1 of 1 (latest)

vivid sand
#

Im trying to do the simpliest thing, just a flicker light, no random time no random flashes no nothing just a simple flickering to replicate police lights for a scene i want to make.

reef sorrel
#

local light = script.Parent.PointLight

while true do
task.wait(1)
light.Enabled = not light.Enabled
end

vivid sand
#

I decided i wanted it to be smooth so i did this and it works

#

but thanks anyways

jaunty skiff
#

ma boi

jaunty skiff
#

and get rid of that wait

modern hawk
#

no need for while loop

#
t1:Play()
t1.Completed:Connect(function()
    t2:Play()
end)
t2.Completed:Connect(function()
    t1:Play()
end)```
jaunty skiff
#

This is pretty weird

#

You could just :Wait() in a loop, doesn’t cost any preformance issues and way better for your eyes