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

Is there a way to disable and enable scripts from a master script?

I tried creating a master script so that I could time all of them to go at about the same time front a title screen, but once I do script.disable = true and go in little while later with false nothing changes. Is there a way to do what I am asking, or even an easier way? Thanks in advance.

2 comments

0

wdym by master script

0

like a script that controls all the others

3 answers

✓ Accepted answer

script.disable is not a valid property of a script. You need to use script.Disabled instead.

4 comments

0

I tried using script.Disabled but it only works to disable it. Is it possible to enable a disabled script?

0

Yes! You can do script.Disabled = true to disable a script, and script.Disabled = false to re-enable it! If this helped, feel free to accept my answer!

0

Alright so I was experimenting with it and the problem was when I tried turning off the script with a different one I had to wait a few moments otherwise it wouldn't have disabled it. And the ones I was mostly experimenting were local scripts in statergui and I now see they moved to another area. Thanks

0

No problem!

To Disable a script, use <script.Disabled = true>. If you want to enable it, use <script.Disabled = false>

just in case anyone is gazing through and wondering, whether they are new or experts, the way i got my master script to work was i put it in the starter gui folder and used instead of going from game and up, i went from script to parent. If you were looking for this hopefully this helps.

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