cheated
|
  |
| Joined: 09 Nov 2010 |
| Total Posts: 7073 |
|
| |
|
ball360
|
  |
| Joined: 31 Mar 2009 |
| Total Posts: 1557 |
|
|
| 23 Apr 2013 09:16 PM |
Not really, simplest loop to use. Besides, not many options for inf. loops that aren't whole lot complicated.
You could use repeat...until false, if you wanted to type it faster. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 09:17 PM |
Waiting 0 is like waiting nothing.. Therefore Studio will crash.
~ Make the simple, amazing ~ |
|
|
| Report Abuse |
|
|
ball360
|
  |
| Joined: 31 Mar 2009 |
| Total Posts: 1557 |
|
|
| 23 Apr 2013 09:19 PM |
| Au contrare, my sir, wait() gives time to the engine to get everything together before executing the loop, or else ROBLOX uses every processing cycle using that loop. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 09:20 PM |
| You mean wait()? But yeah it is efficient, so are for loops :D |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 09:20 PM |
This loop has no wait() but does not crash studio
local a = 0
while a <= 7 do a = a + 1 print(a) end
print(":D")
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]- |
|
|
| Report Abuse |
|
|
ball360
|
  |
| Joined: 31 Mar 2009 |
| Total Posts: 1557 |
|
|
| 23 Apr 2013 09:22 PM |
| It's not an infinite loop. That loop is bound to end sometime, while "true" does not change to false. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 09:22 PM |
He didn't specify that it was an infinite loop.
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]- |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 09:41 PM |
wait() = wait(.01)
This is a defualt setting to prevent the crash. |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 23 Apr 2013 09:44 PM |
@Killer No, wait() = wait(0.03) |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 09:44 PM |
while true do wait() end -- I'm so smart.
~Remember remember the fifth of November Gunpowder, treason and plot. I see no reason why gunpowder, treason Should ever be forgot... |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Apr 2013 09:57 PM |
What? Why? All I said was "My point is, wait() isn't actually nothing".
How is that a rule breaker? |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
| |
|
|
| 23 Apr 2013 09:59 PM |
| These filters are freaking over the top just a little. I said absolutely nothing bad. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 10:03 PM |
speaking on this subject, does anyone know how to break one of these loops at a certain command? like something triggers a break |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 23 Apr 2013 10:04 PM |
while script.BoolValue.Value == true do wait(0.03) print("True bro, true.") end print("y u mak et false?") |
|
|
| Report Abuse |
|
|