How to have scripts that interact with another scene

How would someone use a script to affect entities in another scene. Something that once triggered or activated would say disable an entity in another scene. Perhaps having one script activate another script when triggered? Or possibly something like if activated in scene A do something in scene B?

You can save it in some global object. When scene loads, it would read that object and toggle the entity.

What exactly is a “global object”, I have never head of that before.

You can google Javascript global variables for some explainers.

alright, so a follow up question. How would someone change what a trigger does based upon its tags. I already understand how to create triggers that do things, but say if the trigger has the tag A it would disable all entities with the tag A and the same for B and C.

Essentially what I am trying to create is a system where when the player finishes a level (touches a trigger with a tag) then in the level select which is a different scene the next level will become available, probably by scaling the button to 1 instead of 0 which it starts with. I am looking into this more and found the “window” object but im not sure exactly how to use it to achieve this.