Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GroupRank Leaderboard doesn't work?

Hello

I try to create a group rank leaderboard but it isn't working. Can someone help? What I do wrong?

local GroupID = 3555315 --This is the group ID Number

   game.Players.PlayerAdded:connect(function(player)
	local stats = Instance.new("IntValue", player)
	stats.Name = "Leaderstats"

	local RankDisplay = Instance.new("StringValue", stats)
	RankDisplay.Name = "Ranks" --Leaderboard stat name
	RankDisplay.Value = player:GetRoleInGroup(GroupID)

end)

Thanks for help!

1 comment

0

Regarding to the answer I just posted, to clarify what I said, the Leaderstats' name must be in lowercase, otherwise it won't work.

1 answer

stats.Name = "leaderstats"

It must be lowercase for it to work.

This discussion is preserved as it was. New answers, comments, and votes are closed.