i am trying to make a beacon light but i don't even get any messag4es in output
---repeat forever
wait(10)
while true do
---turn light off
wait(math.random(2, 100))
script.Parent.Material = Enum.Material.Glass
script.Parent.Transparency = 0.5
script.Parent.PointLight.Enabled = false
print("oceon -> valcano pipe light off")
---turn light on
wait(math.random(2,100))
script.Parent.Material = Enum.Material.Neon
script.Parent.Transparency = 0
script.Parent.PointLight.Enabled = true
print("oceon -> valcano pipe light on")
end
script is parented by part so is the point light

2 comments
do u wait in game that long lmao
If I were you, I would use task.wait() instead of wait (because better) and don't put the range as high as 100 seconds if you are trying to debug. Change it to a shorter time and see if it functions as intended.