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: "while true do" studio crash

Previous Thread :: Next Thread 
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
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 is not online. 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 is not online. 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
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
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
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
16 Aug 2015 12:55 PM
anyway i fixed it
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