Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I restart a script without using more than one script?

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.

1 comment

0

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

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.