Saving Tables in DataStore error

So here, I just made it print the Table Pets when I leave.
image

The GetPets only returns the stuff inside the pets table. this does not include the the thing with user

Inside of the pets array, where the owner is, the owner key is an object and not a name

How do you save “owner”? Because it seems to take the player, and not player.Name. (or whatever owner is). :slight_smile:

Oh, is that so? If so, that would probably 99.999% be why thats the case. Let me try it without it.

Ohh, sorry I meant you meant the table user with the player, I am pretty sure the “owner” is a instance and not a string.

That is the issue causing you problems. It should all be working when you’ve turned it into a string. Happy scripting! :slight_smile:

1 Like

Yeah, I did mention that earlier but I suppose I was a little unclear! Glad you figured it out though.

2 Likes

Yes, this was the issue! Thank you @FrozenInferno_Dev and @TortenSkjold for the help. I very much appreciate it, I added it without knowing and that makes sense why it happened after I added it. Thanks!

1 Like

Glad to hear that it’s fixed now! :+1:

1 Like