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
3 days 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 1308 — 3d

1 answer

Log in to vote
0
Answered by
friso9 2
3 days ago
Edited 3 days 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 — 3d
Ad

Answer this question