104: Cannot store Instance in data store. Data stores can only accept valid UTF-8 characters

Greetings,

I am getting this error when saving values. Please help me, I have never seen this before.

The problematic line:

Money:SetAsync(plr.UserId,plr)

The error:

plr is an Instance, why are you saving the player lol?
Datastore can only saves strings, tables, numbers (I think i am forgetting something.)

1 Like

Just like the error tells, DataStores do not allow you to store Instances in them. They only allow I assume numbers and strings only? Correct me if I’m wrong.
You’re trying to save the player in the DataStore which is not possible.
Maybe you meant:

Money:SetAsync(plr.UserId, plr.Money.Value)
2 Likes

Yea, that’s what I was missing. I forgot to write the value path lol. Thanks a lot!