Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- stuff
- end
- theend = true
- repeat
- stuff
- until theend == false -- will never be false so keeps repeating
- --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...
- function infiniteLoop()
- while true do
- stuff
- end
- end
- infiniteLoop() -- to call the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement