When should I save my Datastores?

When should I save my Datastores?


- nsg


What should be achieved?


Find the best way to save users data.


Ideas


Save it either through the player leaving or in timed intervals.


Other information


TimeInterval is 6000ms

There are code snippets on Developer Wiki.
As for Datastore wrappers, DataStore2 seems to be a popular choice and has its own tutorial.

I’d rather save in the leave though

1 Like

I save my Data every 60 to 120 seconds and also when the player leaves.

Every 180 seconds, every time they leave, everytime a developer product is purchased, etc. Also when the game is shutdown. (:BindToClose())

2 Likes