Yes. If not because it’s causing problems then because it’s improper. Even singleplayer games only autosave like every five minutes or when you buy something, and this is using the network.
Never mind, I didn’t realize DataStore2 was a module. You’d need to ask someone else to see how often it actually saves as I can’t be bothered to read the source.
Hi, so you think this may cause troubles? I have the entire game with ds2, should I quit this Increment() function out and save the coins apart of the rest of the game?
The entire DataStore2 Module is entirely dependent on whenever data changes, it’ll automatically update to that value. (Sorta acts like a Changed function.) So unless the OP knows in-depth of what the Module is accomplishing and is able to restructure it for his own being, I’m not sure how this would be approached.
I would like to tell some people that he is using DataStore2 module, which automatically saves all your data when player is leaving and on BindToClose.
All you need to do is just update the value everytime, Datastore2’s Increment method I believe doesn’t call Datastore directly on this method.
If players have been facing dataloss even after implementing Datastore2 its most likely not been implemented properly. Therefore I would recommend reading how the DataStore2 module actually works.