Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Should I save everytime a player buys something?

Asked by 4 years ago

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

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 XviperIink 428 — 4y
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. AbusedCocopuff4 105 — 4y
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. EmilyBendsSpace 1025 — 4y

Answer this question