Change elements in a scene from a DIFFERENT scene?

Trying to describe this as simply as I can, I have a script in one scene that has a Boolean called “On”. This Boolean is checked off. I want to make a code that can check the Boolean as true from a different scene. How could I do this?

Place the script on an empty gameobject and set it persist through scenes.

You can set the Gameobject to not be destroyed when loading a new scene via the inspector.

Through a script see here: