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:
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.)
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)
Yea, that’s what I was missing. I forgot to write the value path lol. Thanks a lot!