Advertisement
Parodper

Untitled

Sep 7th, 2015
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement