Hello guys, I just wrote a leaderstats code and it enters IntValue into player but it isn't showing up on leaderstats. It also won't show any error...anyone can help me?
game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new('IntValue', player)
stats.Name = 'LeaderStats'
local cash=Instance.new('IntValue',stats)
cash.Name = 'Cash'
cash.Value = 0
local rank=Instance.new('StringValue', stats)
rank.Name='Rank'
rank.Value='Private'
end)

1 comment
Thanks man!