esperar função lua
function wait(seconds)
local start = os.time()
repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
função de espera reconstruída em 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)
como esperar em lua
wait() --parameter is seconds
função de espera lua
local function wait(seconds)
local time = seconds or 1
local start = os.time()
repeat until os.time() == start + time
end