local player_pet_data = {}
for i,v in pairs(player.Pets:GetChildren()) do
player_pet_data[v.Name]["Level"] = 12
end
But it keeps erroring. I also tried to do this.
local player_pet_data = {}
for i,v in pairs(player.Pets:GetChildren()) do
table.insert(player_pet_data, v.Name)
player_pet_data[v.Name]["Level"] = 12
end
I have been trying to figure out how to do this for so long I am so glad I finally learned how, this will make coding so much easier. I used to just encrypt my datastores like this.
It’s not only inefficient, but it’s messy once you start losing track of things. No kind of encryption is needed for a data store in the first place. Just save raw data.