Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you save a table to a DataStore recursively?

Asked by
RedCombee 585 Moderation Voter
10 years ago

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

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

Not sure if I understand your question.

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

Answer this question