wait function lua
snippet in lua

wait function lua

user8734

function wait(seconds)
    local start = os.time()
    repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!

wait function rebuilt in lua

user7602

function wait(seconds)
  local start = os.time()
  repeat until os.time() > start + seconds
end

-- This is the wait function (mostly known from roblox)
-- It works exactly like the roblox version
-- It's used like this: wait(how many seconds)

how to wait in lua

user7209

wait() --parameter is seconds