Recently I was developing a module for my inventory system, I’m not very experienced in things like DataStores so I recently ran across these errors here:
function InventoryContainerMeta:Save(Player: Player)
print(self)
InventoryDataStore:UpdateAsync(Player.UserId, function(oldInventory)
return self
end)
end
what self prints out:
I’m not sure why this error happens and help would be greatly appreciated,
thank you!
I’m not the most qualified to provide a response here, but that error is probably occurring since function(oldInventory) is not or is not set to a number, string, boolean, etc. DataStoreService can only save those. I’d check to see whether function(oldInventory) is of a different class than those.