I made a rank GUI that works perfectly, it changes your name color to your team, and presents your rank to the main group, but I want it to change your "rank" depending on the team. I tried to make it so that if you are on a different team, it will display your rank from a different group. I attempted to somewhat duplicate the first line of coding, as that is what made it work. I even made a new value that is used to represent the other rank. Anybody know how to make it work? Code:
namey = script.Parent.Holder.Namey
player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
group = script.Parent.Holder.Group
groupID = script.Parent.GroupID.Value
if player:IsInGroup(groupID) then
group.Text = player:GetRoleInGroup(groupID)
end
if player.Team = ("Test")
then groupID = script.Parent.GroupIDB.Value
namey.Text = script.Parent.Parent.Name
namey.TextColor = player.TeamColor

2 comments
Edit: namey is the text label used to identify the name of someone if you were wondering. Group is the text label used to identify the rank in the group.
Great Question!