Answers for "wait in lua is in seconds?"

Lua
6

wait function lua

function wait(seconds)
    local start = os.time()
    repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
Posted by: Guest on November-07-2020
1

wait() in lua

wait(5)  -- Waits 5 seconds then prints "Hello world!"
print("Hello world!")
Posted by: Guest on March-08-2021

Browse Popular Code Answers by Language