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

Ranks showing as - in leaderboard?

Asked by 2 years ago
Edited 2 years ago

So I've got a group rank leaderboard, and if I join the game first and others join I can see their ranks fine, but if someone else is in the game and you join, their rank shows up as - in the leaderboard.

This is what shows: https://gyazo.com/babde96eb41bf672074d991e02222938

The Script:

game.Players.PlayerAdded:connect(function(player)

local leaderstats = Instance.new("IntValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 0

local Rank = Instance.new("StringValue")
Rank.Name = "Rank"
    Rank.Value = player:GetRoleInGroup(11692696)

leaderstats.Parent = player
Rank.Parent = leaderstats

end)

I have teams in the game, so this may be why? Even so, is there a fix?

Thanks

Answer this question