Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you save a table to a DataStore recursively?

So, if you have:

datastore:SetAsync("Starting11_"..player.Name)

Is there anything you can store other than simply the level's value in order to make a table out of it or would I have to separately enter all my soccer players into the data store through some other method?

1 answer

✓ Accepted answer

Not sure if I understand your question.

local tab = {azarth = {kicks = someval, plays = someval, goals = someval}}
datastore:SetAsync("Starting11_"..player.Name, tab.azarth)

This discussion is preserved as it was. New answers, comments, and votes are closed.