I'm trying to make the player's current amount of Points show on the leaderboard. I've tried using GetGamePointBalance with the player's userId, but it wouldn't work.
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local points = Instance.new("IntValue")
points.Name = "Points"
points.Parent = leaderstats
points.Value = game.Players:GetGamePointBalance(player.userId)
end)
