var/time=100
while(time>0)//waiting 10 seconds
if(!stop_time)
sleep(1)
time--
else
sleep(1)
Now, let's say I have about 20-40 of those loops running at the same time (spawn()ed of course). Will that cause massive lag? If so, how can I have a time counter that can stop and start and have a lot of them without having it cause major lag to the game?