Insert Pointlight into your part in workspace
local Pointlight = workspace.Part.Pointlight
while Pointlight ~= nil do
wait(math.random(1,10)/10)
Pointlight.Enabled = false
wait(math.random(1,10)/10)
Pointlight.Enabled = true
end
Change around the numbers in the wait if you need your flickering faster or shorter. |