of     1   

KLGA
#149916788Monday, November 17, 2014 1:04 AM GMT

while wait(1) do if conditions == requirements then function() end end
KLGA
#149916926Monday, 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
JarodOfOrbiter
#149916974Monday, November 17, 2014 1:06 AM GMT

Neither of those would crash, in theory. They would both break, however.
cntkillme
#149917004Monday, November 17, 2014 1:07 AM GMT

None should cause you to crash but 'function()' will cause an error.
KLGA
#149917104Monday, 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?
cntkillme
#149917179Monday, 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)?
cntkillme
#149917216Monday, 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.
KLGA
#149917705Monday, November 17, 2014 1:16 AM GMT

Oh, Didn't even notice that It was the function causing the crash. Thanks Cnt.

    of     1