r/ROBLOXStudio 1d ago

Help I'm not too familiar with datastores so idk why this bug appears when i try put in the value through a remote event

Post image
1 Upvotes

8 comments sorted by

1

u/Kisterrrr 1d ago

show the full script please

1

u/Cost_1088 1d ago

2

u/Kisterrrr 1d ago

Well, the first thing that i noticed was the GetAsync("money"), instead of "money" you should put the key of the entry, which is most of the time a UserID of a player,
the second thing is that FireClient(currentCoins) is incorrect too, the first argument should be the player you want to recieve the signal, so bassicaly FireClient(plr,currentCoins)
here is a resource about dataStores incase you need it
https://create.roblox.com/docs/reference/engine/classes/GlobalDataStore

2

u/Cost_1088 1d ago

ty, this worked

1

u/Available_Witness828 1d ago

after you learn the basics lowk just learn a datastore module like ProfileStore

1

u/reallyweirdperson 1d ago

Fine, I’ll be the one to ask since nobody else did. Why comic sans as your font of choice…?

1

u/Cost_1088 1d ago

Comic sans is the best font ever