|
| 16 Aug 2015 12:08 PM |
everytime I attempt to call upon my nifty while true do statement the try to go into solo it crashes half way into loading the script and i need to know how to fix it now and if there isnt a way then roblox srsly has to do something about it
|
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 16 Aug 2015 12:10 PM |
dude, you need to yield your script.
while true do will run as much as possible, expending all resources to run it, causing the crash.
you need to do something about your code, as this is just faulty coding rather than ROBLOX's fault.
You yield your script by using wait () somewhere
while true do wait (1) -stuff end
I prefer while wait () do --stuff end
Hello World! |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 16 Aug 2015 12:33 PM |
| imagine your math teacher gives you a problem and hwile you are solving it, he gives you another one. you cant even finish one because you are kept given more. now imagine your teacher gives you time (wait() or wait(x)) to solve them, no problem. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 12:54 PM |
| only thing im doing is trying to do a 2 line code that will change a gui using a value |
|
|
| Report Abuse |
|
|
| |
|