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.
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