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

Would a script run again if it was disabled and enabled?

Say in another script it would turn on the disabled behaviour. If I were to turn it on, off, then on again, would it run?

1 answer

✓ Accepted answer

What will happen is that the script will continue running from where it last was. Example:

print("hello")
script.Disabled = true
print("hi")

Another script:

wait(5)
script.Parent.Script.Disabled = false

What will happen is that it will print hello then wait 5 seconds then it will print hi

3 comments

0

Oh thanks dude!

0

but wait, if it ends, does that mean the script's done?

0

Yes

This discussion is preserved as it was. New answers, comments, and votes are closed.