Posted 10 July 2012 - 10:12 PM
I just want my program to loop to the top of the script when it's done. How would I do that?
while true do
-- your code
end
To repeat for a given number of times:
for i = 1, <Times> do
-- your code
end
There's more you can read about loops, the lua manual is a good place to look.
while true do
os.pullEvent() -- this is needed to stop program crash
print("hello World")
end