How to add group rank to UI

Hi, so I’m not the greatest of scripters as many of you may know.
I need to make it so a text label says your rank of a certain group, I’ve been looking for the past 20 minutes and haven’t been able to do so.
Huge thanks in advance!

You can use the GetRoleInGroup function to get the role of a player in a group.

1 Like

Like this:

if player:GetRoleInGroup(GroupId) == RoleRank then
    print(player.." role in group is ".. plr:GetRoleInGroup(GroupId))

Note: “player” is an nil value because it hasn’t been assigned, you need to make for example, an function connected to an event that fires whenever an player joins.(Having the argument as “player”, but you can change it.)

1 Like