I want to know how to restart a script. I though that maybe if i disabled the script then enabled it, that would work, but i would need a second script to test when that script is disabled then re enable it. I am confused on how I would restart a script.
COMMUNITY QUESTION
How would I restart a script without using more than one script?
1 answer
add this:
while true do
-- insert your code here --
wait() -- keep this here unless you have a delay already, this is to prevent crashing
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You could use a while loop and when it hits the end of the loop it returns to the top