Quantcast

How do I script a light that turns off and on (infinite times)?

i need help. anyone know a script? (i have to insert it into a pointlight). Thanks

while true do
--turn on
wait(number)
--turn off
wait(number)
end

where should I put it? (Yes i’m a big noob)

in eventscript/eventstring
also wrap it into spawn function or coroutine