Datastore Service Help

So I want to put a lot of data on a datastore like the player’s stats and their entire inventory. The way I have been doing is combining everything on a string and saving that then basically decoding it when the player joins. Does anyone know a way to save it on a 3d array basically? Is it possible to save a couple lists on one datastore?

The only methods I know you can use on datastores are :SetAsync() and :GetAsync()

Any help is appreciated

You can store tables in dataStores and do something like this for the data:

ds:SetAsync(id, {
    leaderstats = {
        Money = 200
    },
    inventory = {
        whatever your inventory structure looks like
    }
})

I am so surprised I did not think of that, thank you I will use that

glad you found a soluation, making your own datastore is fine and all but i’d personally just recommend to use a well established datastore system like the profile store module for data related stuff, once you get the hang of it, it will then be really easy to use and its well made for its purpose. you dont have to use it but im just giving some advice is all

profilestore: ProfileStore - Save your player data easy (DataStore Module)

what can happen if i use my own system that is reliable and can’t lose player’s data?

go for it if you know what you’re doing

the system i made is very reliable and i have had 0 data loss and 0 warnings at all and have had a lot of people play it for hours a day

then just keep using it if you know what you’re doing and it has zero issues
but always keep in mind that profilestore is a really good alternative