For example a player buys a weapon should I save using updateasync or for another example if they buy something with robux. by the way I save every 30 seconds and player removing

3 comments

0

Let say there is 10 players and all of them buys something with robux and it just reach the 30 seconds mark for the auto save, it will flood the datastore. https://developer.roblox.com/en-us/articles/Datastore-Errors

0

No you should not. There's a limit with how many times you can save with DataStore every minute. An auto save system will work best.

0

Given how infrequent Robux purchases are, there is no harm in saving when someone buys something. Your 30-second auto save should already be staggered and should only be saving if a player's data has actually changed since their last successful save.