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

game.Players.(name).leaderstats.(gamecurrency).Value=(how much money u want)? to accept my question

Asked by 3 years ago

so i watched AlvinBloxs series on how to make a roblox game and i made the game so i enter the game and write the command "game.Players.(name).leaderstats.(gamecurrency).Value=(how much money u want)" to give me money and it gives me the error "players is not a valid member of datamode1" wut do i do?

1 answer

Log in to vote
2
Answered by
VAHMPIN 277 Moderation Voter
3 years ago
Edited 3 years ago

You do

game.Players.AdamOOFLol.leaderstats.(your stat name here).Value = 10

You should learn about basic lua before doing data stores as it can be a bit complicated, especially if you make a common scripting error like that.

Ad

Answer this question