Keep variables running (like income) while game is closed

Oh, well you have to actually do something with the SecondsSinceLastPlay. I was just showing you how to get that number.

To add the minerals, something like the below would work:

This is just an example, you may have to tweak it for what you need. Also, make sure you are saving the player save when closing the game too obviosuly, I think you are doing this already.

Oh thank you! I had been putting the secondssincelastplay into the “Eventick”, which updates the minerals ingame and giving me all sorts of answers.

Yea the maths needs work but thats because of my variables.

Thank you so much, my eyes burn and i can finally sleep with a peace of mind. Hats off once again to you sir :slight_smile: