Hello. I am making a part in which the light flickers. For some reason, it isn't working. Please answer. Here's the script:
local Light = script.Parent.PointLight
local Part = script.Parent
while true do
Light.Brightness = 10
Part.Material = "Neon"
Part.BrickColor = "Cool Yellow"
wait(5)
Light.Brightness = 0
Part.Material = "SmoothPlastic"
Part.BrickColor = "Fossil"
wait(0.3)
Light.Brightness = 10
Part.Material = "Neon"
Part.BrickColor = "Cool Yellow"
wait(3)
Light.Brightness = 0
Part.Material = "SmoothPlastic"
Part.BrickColor = "Fossil"
wait(0.3)
end
