local BBGUI = game.ServerStorage.BillboardGui
local GID = 6209170
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if player.TeamColor.Name == "Deep orange" then
local CGUI = BBGUI:Clone()
CGUI.TextLabel.Text = player.Name.."\n".."Inmate"
CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
elseif player.TeamColor.Name == "Dark blue" then
local CGUI = BBGUI:Clone()
CGUI.TextLabel.Text = "[CLASSIFIED]".."\n"..player:GetRankInGroup(GID)
CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
end
end)
end)
When I switch over to the Dark blue team, the rank shows up as '252'.

2 comments
Do you not want it to show your rank in the group? What is the desired result?
My desired result is for it to show my rank name. For example, it should say "Assistant Director" and not 252.