I'm curious on how to make a normal light object flicker randomly. I'm a new scripter and trying to understand this.
COMMUNITY QUESTION
Scripts for flickering lights?
1 answer
Use loops so it goes on forever. Then just change the light.enabled from true to false.
while wait() do
script.Parent.PointLight.Enabled = false
wait()
script.Parent.PointLight.Enabled = true
end
Make sure the script is in a brick with a light in it. If it doesn't work check to see if the light is named "PointLight".
Hope this helps.
1 comment
0
It helped quite a bit why thank you lol. But i'm confused on how to make it work now... @LordDragonZord
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Add a part and insert a point light into the brick. Change things like color and etc. After, insert a script and copy the code I made and paste it into the script.
Ohh I used a different light... Thanks bro! Means a lot
Just replace PointLight in the code with SpotLight if you wanted the other light. Also, click "Accept Answer" next to my answer if it helped.