function On()
game.Workspace.Lava.Pointlight.Enabled = true
end
function Off()
game.Workspace.Lava.Pointlight.Enabled = false
end
while true do
On()
wait(3)
Off()
wait(3)
end
Also I know theres much easier ways to do it but it has to be the functions in the while true do loop that's the thing im trying to get to work, does anyone know how to make functions work in while true loop

4 comments
Try making the functions local (local function On/Off())
are you getting any errors?
No errors
I'm not sure about this, but I do not think you need any function to use this