generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: In REAL lua,

Previous Thread :: Next Thread 
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
18 Sep 2011 06:28 PM
What is the equivalent of wait?
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
18 Sep 2011 06:30 PM
depends how you're doing it. Either nothing there at all, or coroutine.yield()
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
18 Sep 2011 06:31 PM
os.execute("sleep " .. tonumber(n))
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
18 Sep 2011 06:31 PM
Use a loop to hang your thread?

It won't cause your shell/entire computer to freeze like it does in Roblox.
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
18 Sep 2011 06:33 PM
@myrkos

Unix commands? :/
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
18 Sep 2011 06:34 PM
ehh commands aren't a very portable way to handle things
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
18 Sep 2011 06:37 PM
I know, but it works (on some systems)
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
18 Sep 2011 06:40 PM
function wait(Time)
local Begin = os.time()
repeat until Begin <= os.time() + Time
end
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
18 Sep 2011 06:50 PM
"repeat until Begin <= os.time() + Time"
repeat until Begin+Time<=os.time()
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
18 Sep 2011 08:05 PM
It'll be repeating quite a bit. On roblox, if Os wasn't locked, it would crash the game.
Report Abuse
thegenius is not online. thegenius
Joined: 03 Oct 2008
Total Posts: 3838
18 Sep 2011 08:11 PM
hax Lua into C++ and include dos.h and use _sleep()

I have no experience with legitimate Lua...

(Note: Math FTW) (Also, thegenius is insane.)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image