|
| 17 May 2013 07:49 PM |
local function waitC(time) while (os.clock() <= time) do end end
waitC(5.0)
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 17 May 2013 07:53 PM |
"Pokemon771, I honestly am not sure. Ask dsi1. "
then dont post. |
|
|
| Report Abuse |
|
|
Voile
|
  |
| Joined: 19 Dec 2011 |
| Total Posts: 7598 |
|
| |
|
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 |
|
|
| |
|
| |
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
| |
|