Hi, how can I access to a variable from another scene?

I want to access to a variable from another scene script.

I was able to access the variable, but the value was not the same. I mean, the variable should change to true when the player enters a 2d area (and that happens in the variable’s scene), but when I accessed it from the other scene, the value was always false… Can someone help me?

Share your code please, using preformatted text with ```