how to wait lua

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

3
1
Mike Kay 105 points

                                    wait(5)  -- Waits 5 seconds then prints "Hello world!"
print("Hello world!")

3 (1 Votes)
0
3.75
9
Brasshat 95 points

                                    wait(1)

3.75 (8 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
lua wait for code to return how to make wait() in lua Lua call function and wait to complete Lua how to do a Wait function LUA macro wait wait statement lua lua how to do a wait how to use wait in lua lua inline wait how to wait seconds in lua lua wait while make lua wait 10 seconds how to make lua wait lua wait.time wait() lua lua wait for a function to finish lua wait for a function to execute lua wait for function to finich lua wait function without os how to delay lua lua wait 3 seconds pause function in lua pause function lua lua wait 3 delay a function lua How to make something wait in lua wait lua lua time.wait does wait() have a return lua wait() command in lua lua wait funciton lua wait command lua custom wait function wait command in lua how to add a wait function to lua lua wait until lua how to make the program wait lua wait for time lua how to let a progrem wait sleep lua how to add a pause in lua how to use wait lua delay function lua lua wait before executing lua sleep thread waiting in lua how to wait 2 seocnds in lua lua 5.1 delay lua 5.1 wait time lua delay fution lua wait for function to finish pause in lua lua wait() wait until lua sleep in lua lua sleep code lua wait seconds wait in luac wait function in lua how to pause the program in lua how to make a wait in lua lua how to make a wait function settimeout(sleep, function) lua lua pause function pause code lua lua delay function Script:Sleep lua lua os.sleep lua wait how to do wait in lua how to do a wait in lua how to make a wait functrion lua wait function inf lua how to make a wait function inj lua how to make a wait function in lua function wait(s) lua function wait(s) l8ua sleep function lua lua function wait() lua wait 2 seconds lua wait function lua wait 10 seconds wait in lua how to wait in lua lua sleep lua wait 1 second lua wait one second lua wait till x seconds wait() in lua lua os.sleep() lua delay how to pause in lua wait function lua how to wait lua
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source