value is the current "worth" of the currency, balance is how much you have. if you wanna make line graphs like these check this out: https://scratch.mit.edu/projects/1214124542 buying makes the value go up and minuses from your balance by the value. selling makes it go down and adds to your balance by the value
all me except for the save code, that was a tutorial i forgot who made it tho. im gonna try make a way to give other people currency i added a line graph, thats pretty cool