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
Consider using this script: https://web.roblox.com/library/858275957/Group-Ranking-Script and insert it into the Workspace and change the group ID in the script and each player in game will be given their rank in the group. Hopefully this works I haven't tried it yet but it has more likes than dislikes and most likely works.
alert("CheckeredDev + " is awesome!");
:D