Ad
Log in to vote
0

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

Asked by 5 days 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 6444 — 4d

2 answers

Log in to vote
1
Answered by 4 days 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 134 — 4d
0
what if I have 3 leaderstats, like resets, rebirths and coins? WINDOWS10XPRO 134 — 4d
Ad
Log in to vote
1
Answered by
Gogulsky 102
4 days 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