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
 

while true do end crashing?!?!?!??!?!?

Previous Thread :: Next Thread 
warlord436 is not online. warlord436
Joined: 10 Feb 2012
Total Posts: 277
02 Jan 2016 10:43 AM
Everytime i run a

while true do

--code

end

roblox studio goes into (Not Responding) and stays like that.. Any fix? or is studio just being bs


Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
02 Jan 2016 10:44 AM
while true do
wait()

or while wait() do
Report Abuse
warlord436 is not online. warlord436
Joined: 10 Feb 2012
Total Posts: 277
02 Jan 2016 10:46 AM
well... thats kinda dumb.. crashes unless you do a wait() lol.. Thanks for your help but roblox needs to fix.. xD


Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
02 Jan 2016 10:46 AM
lol it's not dumb you just don't know how lua works
Report Abuse
warlord436 is not online. warlord436
Joined: 10 Feb 2012
Total Posts: 277
02 Jan 2016 10:47 AM
I know how lua works, but instead of studio going into (not responding) because of a simple error is a bug.. and shouldn't happen. Should just give an error


Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
02 Jan 2016 10:49 AM
The script is doing exactly what it's supposed to do. It's running the code an infinite amount of times per second which ultimately causes the server to crash.
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
02 Jan 2016 10:49 AM
it shouldn't give an error because it isn't an error ;-;
Report Abuse
warlord436 is not online. warlord436
Joined: 10 Feb 2012
Total Posts: 277
02 Jan 2016 10:49 AM
I get that, but don't you think it should just Error out, not crash lol


Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
02 Jan 2016 10:51 AM
working code/=/error



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,179 Tx189 (づ ゚ ³ ゚)づ
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
02 Jan 2016 10:52 AM
~=
Report Abuse
Pontoons is not online. Pontoons
Joined: 19 Sep 2015
Total Posts: 14
02 Jan 2016 11:02 AM
It's not going to throw an error for working code



It's simple physics, Robux: R$0, Tix: Tx30 #OSCAR4PRES
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
02 Jan 2016 11:10 AM
Why DOES Studio freeze for this though? I understand that Lua is really inefficient, but shouldn't they have some sort of system to prevent all of the window's resource being used by Lua? Probably totally wrong on the wording of course, but why does it stop responding just because it is using Lua? Shouldn't it still reserve some resources to allow interaction and the like?
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Jan 2016 11:45 AM
while wait() do

end
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Jan 2016 11:46 AM
@jarod its a ENDLESS loop of crashing not one crash it keeps trying to run and in turn overloads because it runs without any stop or pause
Report Abuse
TheVinny1996 is not online. TheVinny1996
Joined: 13 Apr 2009
Total Posts: 1017
02 Jan 2016 11:54 AM
Just because LUA allows you to write unreasonable code doesn't necessarily make it unreasonable itself.
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