Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

While true do loop stops working after script is disabled and then re-enabled. Why?

I have no reason to post the code to the script because it is just a while true do loop that runs if a value = 3.

Just wondering how to keep my loop running after the script is re-enabled.

1 comment

0

What is the purpose of disabling the script? If you have a situation in which you would not like the loop to run, just add that to the parameters.

1 answer

So your using a while true do loop and disabling the whole script, to stop the loop in that case:

Don't do that.

You can use the break keyword to stop all loops

1 comment

0

i just remember i could do that, but how do i “unbreak” the loop if i want the script to continue working again

This discussion is preserved as it was. New answers, comments, and votes are closed.