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'.
Try using
Player:GetRoleInGroup()
if you want to get their rank name.
player:GetRankInGroup(GID)
will return an integer, which is the rank's "power". Instead, you would use player:GetRoleInGroup(GID)
to get the rank name (a string).