I’m getting the error “103: Dictionary is not allowed in data stores.”
How could I modify my code so that what I’m saving isn’t a dictionary? I also don’t understand how it is a dictionary, help would be appreciated on that too.
-- all of the things in the player do exist
local data = {}
data.Coins = player.Coins.Value
data.Equipped1 = player.Equipped1.Value
data.Equipped2 = player.Equipped2.Value
data.Items = {}
data.Items2 = {}
for i,v in pairs(player.Inventory1:GetChildren()) do
table.insert(data.Items, v.Name)
end
for i,v in pairs(player.Inventory2:GetChildren()) do
table.insert(data.Items2, v.Name)
end
local success, erromessage = pcall(function()
DataStore:SetAsync(player.UserId, data)
end)
Thanks!