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 » Scripting Helpers
Home Search
 

Re: Would this work?

Previous Thread :: Next Thread 
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 07:49 PM
local function waitC(time)
while (os.clock() <= time) do
end
end

waitC(5.0)
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
17 May 2013 07:50 PM
This forum is for RBX.Lua just so you know, and that is not a great way of waiting so I wouldn't reccomend it.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 07:51 PM
"This forum is for RBX.Lua just so you know, "

Where does it say just for rbx.lua?



" and that is not a great way of waiting so I wouldn't reccomend it."

whats a better way?
Report Abuse
NUFCEDRed is not online. NUFCEDRed
Joined: 22 Nov 2012
Total Posts: 250
17 May 2013 07:52 PM
Pokemon771, I honestly am not sure.
Ask dsi1.

~Making ROBLOX Better; One forum post at a time.~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 07:53 PM
"Pokemon771, I honestly am not sure.
Ask dsi1.
"

then dont post.
Report Abuse
Voile is not online. Voile
Joined: 19 Dec 2011
Total Posts: 7598
17 May 2013 07:54 PM
[ Content Deleted ]
Report Abuse
NUFCEDRed is not online. NUFCEDRed
Joined: 22 Nov 2012
Total Posts: 250
17 May 2013 07:59 PM
Pokemon771, don't be so rude.
I was suggesting that you asked dsi1.
He can help you, but you are an ass.

~Making ROBLOX Better; One forum post at a time.~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 08:26 PM
[ Content Deleted ]
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 08:27 PM
"get out"

why??
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 08:32 PM
Someone please tell me if this works in roblox because im on my linux machine right now so i cant test it.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 08:43 PM
.
Report Abuse
Usering is online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
17 May 2013 08:47 PM
You can't use the OS library in Roblox.

Life is an endless nightmare
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 08:48 PM
"You can't use the OS library in Roblox."

damn..

would it work in non rbx.lua?

Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 08:54 PM
.
Report Abuse
Tj3 is not online. Tj3
Joined: 12 Mar 2008
Total Posts: 677
17 May 2013 09:07 PM
Well, it probably wouldn't do what you want it to do. It'd wait until the value returned by os.time() is greater than the time you specified. You'd want something like this:

local function waitC(time)
local start = tick()
while (tick() - start) <= time do
end
end

waitC(5.0)
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
17 May 2013 10:43 PM
Tick() is rbxl.lua







Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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