1 | while true do |
2 | script.Parent.PointLight.Enabled = false |
3 | wait( 0.3 ) |
4 | script.Parent.PointLight.Enabled = true |
5 | end |
It turns the PointLight off, but it doesn't comply to turn back on to form a flicker. Sorry for asking such a simple question, I just started :D
Thank you!
There's no delay between when the light is on and when the light is off, so it will always appear off.
Just add another wait().
1 | while true do |
2 | script.Parent.PointLight.Enabled = false |
3 | wait( 0.3 ) -- Waits 0.3 seconds before turning back on |
4 | script.Parent.PointLight.Enabled = true |
5 | wait( 0.3 ) -- Waits 0.3 seconds before turning off |
6 | end |