Profile Service Saving Data Table Help

Hello, I’m attempting to make a system that saves a player’s pets and said pet’s level and enchants using Profile Service. However, the pet’s level and enchants don’t save, unlike other stats such as player level which does save.

The code basically looks like this:
Pets = {Dog = {"Dog", 1,} -- Pet name and level

Is this happening because it’s a nested table (I think)? If so, how can I work around this?

Also, what does " Consequently, you must be aware of what you MUST AVOID writing inside Profile.Data or Profile.MetaData.MetaTags , directly" mean?

Thank you!

Pets = {Dog = {“Dog”, 1}}

btw why don’t you try doing some tests
try saving

  1. Pets = “Hello”
  2. Pets = {“Hello”}
  3. Pets = {[“Hello”] = “Hi”}
  4. Pets = {[“Hello”] = {“Hi”}}
    what if the changes you think are being made not getting registered to the actual data table also make sure you change other stats too while testing so you can confirm that level saved but pets didn’t
    also make sure you are modifying data at the right time
1 Like

It was saving correctly, I just had a part in the script that kept resetting that data.

Thank you!