I made some Christmas lights while have the ability to be turned on and off with a script but due to the amount of parts it changes it causing some lag in the game at the moment so I was wondering if there is a way to disable all the scripts with a single script during the time I am not using the lights.

4 comments

0
0

Don't disable scripts - instead use a flag. https://techterms.com/definition/flag

0

You don't even need to disable any scripts. You can use an event listener in every script.

0

You can loop the scripts and disable them.