how to declare coin get in many scenes play to the a main menu or scene shop?

Update your code with code tags Using code tags properly

Way to hard to read this.

And honestly, I personally wouldn’t do anything with this part of your code in Update. It’s not needed. Set the stuff up once and only update text when your values change.