Store them in a table when you save them:
local t = {}
for _, folder in pairs(script.Parent:GetChildren()) do
if folder:IsA("Folder") then
for _, value in pairs(folder:GetChildren()) do
t[value.Name] = value.Value
end
end
end
dataStore:SetAsync("data", t)
Then, when you call GetAsync, you'll get the table back all at once. |