Help with the playerlist

I want the playerlist to only display 1 row of ranks. This used to be no problem ever and always worked out till I added more teams where as it now displays multiple rows and is looking like something that I really didn’t want to it to be.

How do I make it look like before?

Summary

1 Like

Make the playerlist a stringvalue and edit the value to the rank.

1 Like

I have done this

local leaderstats = Instance.new("StringValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 0
local Rank = Instance.new("StringValue")
Rank.Name = (Player:GetRoleInGroup(5001306))
Rank.Value = Player:GetRoleInGroup(5001306)
leaderstats.Parent = Player
Rank.Parent = leaderstats

Yet it works fine with 1 player however when more people join it looks weird.

1 Like

Why not just make one singular StringValue named Role and make its value to their rank?

1 Like

It’s a pretty simple fix, all the ranks need to have the same name, but different values.

local leaderstats = Instance.new("StringValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 0
local Rank = Instance.new("StringValue")
Rank.Name = "Rank"
Rank.Value = Player:GetRoleInGroup(5001306)
leaderstats.Parent = Player
Rank.Parent = leaderstats

The name will be the title of the leaderstat, so if that is different for each person then it will show multiple rows.

3 Likes