how to wait in lua
snippet in lua

wait function lua

user8288

function wait(seconds)
    local start = os.time()
    repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!

how to wait in lua

user5851

wait() --parameter is seconds