Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
ghxstlvty 133
2 years ago

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.

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. cmgtotalyawesome 1418 — 2y

1 answer

Log in to vote
0
Answered by
friso9 -3
2 years ago
Edited 2 years ago

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

0
i just remember i could do that, but how do i “unbreak” the loop if i want the script to continue working again ghxstlvty 133 — 2y
Ad

Answer this question