Changing the audio when the button in other scenes is pressed

Godot Version

4.2.1

Question

How to make that if the button is pressed, then in other scenes audio will change, and if not pressed, that nothing will happen (For example, to change the music to copyright-free)?

For your example, how I’d do this is by making a singleton script that has a variable copyright_free = true and change it to false when the button is pressed.

And then in the other scene, have it get the value of the script by doing something like if singleton_script.copyright_free = true

Singletons (Autoload) — Godot Engine (stable) documentation in English