Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Scripts for flickering lights?

I'm curious on how to make a normal light object flicker randomly. I'm a new scripter and trying to understand this.

3 comments

0

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.

0

Ohh I used a different light... Thanks bro! Means a lot

0

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.

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.