Answers for "wait function lua"

Lua
5

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
2

wait() in lua

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

how to wait lua

wait(1)
Posted by: Guest on April-18-2020
0

Wait function lua

local function Wait(s)
  local c = os.time()
  
  repeat until c >= c + s
 end
Posted by: Guest on September-05-2021
0

how to wait in lua

wait() --parameter is seconds
Posted by: Guest on August-21-2020
1

wait function rebuilt in lua

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)
Posted by: Guest on March-01-2020

Browse Popular Code Answers by Language