Advice on DataStores

Hello,

I am looking for advise on how DataStores work. Mainly like whats their limitations, and where can I find these limitations.

I am currently writing a modular DataStore system so I don’t have write one again.
My Problem mainly is I am unsure on how to save data that has failed to save.

The Solution I first had to this problem was to save the data in a table and save the players data into that table, then try to save the players data again. Failing to save would mean it would loop trying to save the players data until it successfully does.

But then I thought about what happens when a player leaves and it doesn’t save properly, but the player then decides to server hope. With what I explained before I can see that the data could get mixed up with old overwriting new values.

Like am I able to auto save every minute, because then that would remove the scare of losing data if I chose not to do that fail safe i stated above.

1 Like

tbh, I just use the ProfileService datastore module. It means I don’t have to worry about write checks, I just feed it what I need. No point in reinventing the wheel.

Use profile service, period.

It may be a bit confusing however learning how to use it is still easier and more practical then making your own datastore

ProfileStore is the updated one by lolris.

Roblox DataStores Are Actually Extremely Simple…
How to use DataStores in Roblox Studio 2024!
Roblox DataStore Tutorial - Data Stores & Saving Data - Scripting Tutorial
Data Stores - Roblox Scripting Tutorial

Last two are by AlvinBlox … yes I’m a fan. These pretty much cover everything.