Im creating inventory system. When player leaves, folder with his inventory saves to a data store. So it will look like this:
local inv = {
["Wood"] = 69
}
I cant find anything that helps me. My code is:
for i,v in pairs(plr.inventory:GetChildren()) do
table.insert(inv, v.Name)
table.insert(inv[v.Name], v.Value) --Ik its a string..
end