I have a datastore where I indexed the player's data using their player.UserId.
The players datatable looks like this:
player.UserId = {
PlayerStats = {Money = 10, etc..}
OtherTables..
{
I want to increment Money by 10 every 10 seconds and I was wondering if IncrementAsync would be a good option.
If it is, how would I use it to do this?
If not, should I just make a local value and increment that and save it at the end of the game into the datastore?
Thank you!

1 comment
I've looked at the roblox page for IncrementAsync and it's not very clear on how to use it.