Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I give a specific player coins not everyday while having data store?

Asked by 3 years ago

So I have data store because I'm making a simulator game, the thing is, I want to give my player coins because he helped me so much! And I suddenly realised that I have data store, so how do I do it? his name is aimanlovemalaysia683, Nobiszx and Riziien.

0
Contact the Discord found in my Bio. Ziffixture 6913 — 3y

2 answers

Log in to vote
1
Answered by 3 years ago

You can use the command bar or the in-game developer console.

game:GetService("DataStoreService"):GetDataStore("NAME_HERE"):SetAsync(KEY_HERE, COINS_HERE)

Where NAME_HEREis the name of your DataStore, KEY_HEREis the key of the players, and COINS_HEREis how much coins you want to give them.

0
omg thanks so much WINDOWS10XPRO 438 — 3y
0
what if I have 3 leaderstats, like resets, rebirths and coins? WINDOWS10XPRO 438 — 3y
0
you ruined me WINDOWS10XPRO 438 — 3y
Ad
Log in to vote
1
Answered by
Gogulsky 129
3 years ago

Can't you just use Adonis Admin and do the command :add [Username] Coins [Number]? That's the way I do it.

Answer this question