Question With The "Datastore Plugin" Plugin And The Data Of The Players

I Bought The “Datastore Plugin” Plugin For My Game, I Would Like To Change The Data For A Player,

For Example, i want to Put The Value “Coins” to 10 For Player “IDK123”
image
How can I do? A Solution With The Plugin Is Not Necessary, Other Methods Are OK As Well.

I hope you can help me !!!

game.Players.topcst.leaderstats.Coins.Value = 10

And I’m not sure but leaderstats is best of being a folder, I’m not entirely sure it works if it isnt

It didn’t work, I’m sorry.
Then, I would not like a script that sets the coins to 10 and that’s it, I would like to add them,

How are you giving? And if you want to add just add a + before the =

in this case I would like to Add the coins for those who lost them, so I would like to make sure that the coins are added only once

Make sure it’s a server script, and you are also changing “topcst” for the player name

Already Tried
Or, I Have An Idea … I Could Create A Code System, So I Can Create A Custom Code To Use That Adds The Value, But I Don’t Know How To Do It.
Do you have like some code system that I can put the value on? thank you.

[ i mean something like twitter codes ]

Try making the leaderstats value a folder instead , this may be the issue , if not sorry I don’t know

1 Like