Функция ожидания Луа
function wait(seconds)
local start = os.time()
repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
Tes
function wait(seconds)
local start = os.time()
repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
wait(5) -- Waits 5 seconds then prints "Hello world!"
print("Hello world!")
local function Wait(s)
local c = os.time()
repeat until c >= c + s
end