Hello! I’ve been trying to save all of the children of a particular folder into datastore. How would I make it so the datastore holds in a table number values and strings?
Couldn’t you just do something like this:
local data = {2849, “hi”, 38, 294, “this world is sus”}
And save it using normal data store techniques?
Folders should only be used to replicated things within server → client boundary. If you are talking about models etc. You gotta serialise the data
local part = workspace.Part
local Data = {Position = {
X = math.floor(part.Position.X), Y = math.floor(part.Position.Y, Z = math.floor(part.Position.Z)
},
}
--// now you can save variable Data
local suc,err = pcall(function()
game:GetService("DataStoreService"):GetDataStore("Something"):UpdateAsync("somekey",function(OldData)
return Data
end)
end)
if (err) then
warn(err)
end
Never mind I found the issue, I had to create a separate store, it also helps with datalose.