The wait() function allows the program to wait until the applied amount of seconds ended.
function:
function wait(sec, debug)
t = os.clock() --store time when the wait function started
tp = t + sec --store the end time of the wait function
while true do --loop that goes...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.