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

How to begin running a script after another script has been disabled?

How would I begin running a a separate script after another script has disabled itself? Such as to enable the other script again.

2 comments

0

I'm guessing this Question is based off of your last Question. :P It is a bad idea to use the 'Disabled' property of the 'Script' or 'LocalScript' for a 'Debounce'; The reason is because, once the Script disables itself, it won't beable to enable itself again, because once disabled, it stops all execution that the Code was running.

0

Actually Alpha, it can enable itself again. As long as there is nothing that makes the script yield, it can be reactivated

1 answer

✓ Accepted answer
script2 = workspace.ScriptSecond

while wait() do

if script2.Disabled == false then

script.Disabled = true

elseif script2.Disabled == true then

end

Hope this helps!

2 comments

0

Thank you!

0

Hey no problem, just like to help!

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