Wouln't it be fun to check out how many infinite loops there are? I found... four. The Timeout loop.
if (playerenters||timeout){
//stuff
timeout = 1;
}
the for loop
for (i=1;i>0;i++){
//stuff;
sleep 1;
}
the while loop
while (1=1){
//stuff
sleep 1;
}
the recursive function
loop();
function loop(){
//stuff
sleep 1;
loop();
}
i haven't tested above one =\