Text Label Group Rank

Hello there!

I am attempting to create a lanyard with the players name, image etc but have come across an issue!

I wish to put a players rank on it in a specific group and show it to all players.

The code for the username is as followed

script.Parent.Text = script.Parent.Parent.Parent.Parent.Parent.Name

Code for player id

local personname = script.Parent.Parent.Parent.Parent.Parent.Name
if not game.Players:FindFirstChild(personname) then return end
local person = game.Players:FindFirstChild(personname)

script.Parent.Text = person.UserId

1 Like

textlabel.Text = plr:GetRoleInGroup(groupId).

local personname = script.Parent.Parent.Parent.Parent.Parent.Name
if not game.Players:FindFirstChild(personname) then return end
local person = game.Players:FindFirstChild(personname)
script.Parent.Text = person:GetRoleInGroup(8185481)