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!")
function wait(n)
os.execute("sleep "..tostring(tonumber(n)))
end
-- the reason we're doing this is because lua
-- doesn't have a built in wait function
-- unless it's roblox lua or other types,
-- but this is for vanilla lua
local function Wait(s)
local c = os.time()
repeat until c >= c + s
end
wait(5)