So I have a game where the player gets coins and those coins save and continue to add up and you'll be able to use those coins with an in game store. But I have run into an issue that maybe someone here can help with. Here is my code for the store
Here is the error that i get
Here is the main part of the game where the global variable is being pulled from
I've tried to follow all of the tutorials with no success. I want the coins to add up, am i doing things right and why do I have the error. any help is greatly appreciated.