Hi! So usually for saving inventories, I would make a table and add the tool Name to it. Then to load data I would just go through the data, check if there’s a tool of that name in the tools folder, then clone it into the players backpack. However, pets are different as they have data like levels etc. I was going to use dictionaries but what if the player has 2 pets of the same name? Then the dictionary key will be messed up. This is what I mean:
--Player has 2 dogs
local pets = {
["Dog"] = {["Level"] = 4,["Exp"] = 6},
["Dog"] = {["Level"] = 2,["Exp"] = 3} -- There are 2 dog keys which will mess up the system!
}
How would I go about with saving pets?
