Advertisement
Parodper

Untitled

Sep 7th, 2015
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. stuff
  3. end
  4.  
  5. theend = true
  6. repeat
  7. stuff
  8. until theend == false -- will never be false so keeps repeating
  9.  
  10. --Also note there is no goto function in lua, and it is considered poor coding practices to use goto. It can cause some funky problems. Just create your code as a function and call the function instead...
  11.  
  12. function infiniteLoop()
  13. while true do
  14. stuff
  15. end
  16. end
  17.  
  18. infiniteLoop() -- to call the function
Advertisement
RAW Paste Data Copied
Advertisement