I have a game with multiple places, what I’m trying to accomplish is that if I click a button in one place then it disables a script from another place, would this be possible if so how?
The scripts will need to be accessible by each other, and then you can use the .Enabled property to disable or enable it.
Note though that a deactivated script won’t run at all.
So if I enable it in one place it will be automatically enabled in the other? Because the first place will be a main menu with a shop, if you buy something I want it to work in the actual main game, and it’s not a tool it’s an attack.