Will a true loop continue to run if the script is disabled after its activated?

this is a future thing ill have to encounter soon (im using particles that bypass the graphic limit using a code, and in the future i want to add a button to disable such scripts)

I Did a bit of testing, and yes, I can confirm that the while true do stops when the script gets disabled.

1 Like

alright, thanks

char limit

Consider doing some research first before creating a topic here :wink:

Funnily enough, this behavior was different as setting the property .Disabled would not break the current thread and would keep resuming, and I believe this was before task.wait() was a thing

References:
Intro to Scripting - Looping Code
BaseScript - Disabled Property

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.