menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Would this cause a player to crash?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Would this cause a player to crash?
KLGA
Join Date: 2014-04-19
Post Count: 2571
#149916788
Monday, November 17, 2014 1:04 AM GMT
while wait(1) do if conditions == requirements then function() end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KLGA
Join Date: 2014-04-19
Post Count: 2571
#149916926
Monday, November 17, 2014 1:06 AM GMT
It caused my player to crash while testing it in studio, would it be any different if I did: while true do stuff wait(1) end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
JarodOfOrbiter
Join Date: 2011-02-17
Post Count: 20029
#149916974
Monday, November 17, 2014 1:06 AM GMT
Neither of those would crash, in theory. They would both break, however.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cntkillme
Join Date: 2008-04-07
Post Count: 49450
#149917004
Monday, November 17, 2014 1:07 AM GMT
None should cause you to crash but 'function()' will cause an error.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KLGA
Join Date: 2014-04-19
Post Count: 2571
#149917104
Monday, November 17, 2014 1:08 AM GMT
Okay @Cnt Was just using that as an example. They both caused my player in Studio to stop responding. How could I prevent that from happening?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cntkillme
Join Date: 2008-04-07
Post Count: 49450
#149917179
Monday, November 17, 2014 1:09 AM GMT
Check another script or post the function, maybe it's something in there causing the problems. And by "stuff", do you mean just more lines of code (for the 2nd script)?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cntkillme
Join Date: 2008-04-07
Post Count: 49450
#149917216
Monday, November 17, 2014 1:10 AM GMT
By check another script, I mean look through other scripts maybe it's a different script causing you to crash.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KLGA
Join Date: 2014-04-19
Post Count: 2571
#149917705
Monday, November 17, 2014 1:16 AM GMT
Oh, Didn't even notice that It was the function causing the crash. Thanks Cnt.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right