Click here to Skip to main content
15,917,455 members

Comments by Anthony Durk (Top 2 by date)

Anthony Durk 2-May-22 12:40pm View    
it works but the problem is in a while loop it's not waiting it's timing out the script

local function wait(seconds)
local waittime = os.clock() + seconds/10
repeat until os.clock() > waittime
return seconds
end

local returnedWait = wait(10)

print(returnedWait)

while true do
wait(10)
print("this is printing every 10 seconds")
end
Anthony Durk 16-Mar-22 11:31am View    
The documentation is messy and it does not show all the keywords