funkce čekání lua
function wait(seconds)
local start = os.time()
repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
funkce čekání přestavěna v 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)
jak čekat v lua
wait() --parameter is seconds
funkce lua wait
local function wait(seconds)
local time = seconds or 1
local start = os.time()
repeat until os.time() == start + time
end