I know the 'Tokens' stats work.
But the 'Coins' stats don't!
Output:
Coins is not a valid member of IntValue
Here is the script:
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local captures = Instance.new("IntValue")
captures.Name = "Tokens"
captures.Value = 0
captures.Parent = stats
stats.Parent = newPlayer
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local captures = Instance.new("IntValue")
captures.Name = "Coins"
captures.Value = 0
captures.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:connect(onPlayerEntered)

1 comment
Thx! It fixed right up!