I have been doing a lot of testing with my game, sometimes using an alternate account for testing DataStores.
I have noticed that when my alternate account leaves a game with some currency, the game refuses the account’s progress to save, resetting their stats to 0.
Proof (ignore the obnoxious alternate account name)
It appears on line 54, you forgot to capitalize “bits”, so it is unable to find the “Bits” IntValue as it is searching for an object called “bits” which doesn’t exist. Try changing line 54 to the line of code below and see if it fixes the issue as expected: