|
| 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 |
|
|
|
| 02 Jan 2016 10:44 AM |
while true do wait()
or while wait() do |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 02 Jan 2016 10:46 AM |
| lol it's not dumb you just don't know how lua works |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 02 Jan 2016 10:49 AM |
| it shouldn't give an error because it isn't an error ;-; |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
| |
|
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 |
|
|
|
| 02 Jan 2016 11:54 AM |
| Just because LUA allows you to write unreasonable code doesn't necessarily make it unreasonable itself. |
|
|
| Report Abuse |
|
|