My game will be including developer purchases such as in-game money for R$. This means that the money the player purchases with R$ needs to be saved in a datastore alongside the money they’ve earned from just playing the game.
My worry is what if I make an error in my code or somehow datastores fail to save and the purchase the player has made doesn’t get saved. This means the player has just lost the purchase they’ve made.
What I am wondering about is how does Roblox handle this, and what are my ways to prevent it. I don’t want to get in trouble for scamming a player out of their robux if my code failed and what would be the ways to prevent losing player data.