-
What do you want to achieve? When someone is on a Specific Team (In my case Trainer Team) it makes a Text box below the Rank name (in my case my Group Rank is the Executive Premier)
-
What is the issue? The Specific Team Name Overhead GUI isn’t working when the other group ranks and name are.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub? I tried, but no solutions
local groupID = 10320154 -- Put your Group ID here!
game.Players.PlayerAdded:Connect(function(player)
local groupRank = player:GetRoleInGroup(groupID)
local clone = script.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.Frame.Name1.Text = player.Name
clone.Frame.Rank.Text = groupRank
player.CharacterAdded:Connect(function()
local groupRank = player:GetRoleInGroup(groupID)
local clone = script.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.Frame.Name1.Text = player.Name
clone.Frame.Rank.Text = groupRank
local function changeText(Player, Team)
local teamName = Player.Team.Name
if teamName == "Trainer" then
teamName = "Trainer"
changeText.Rank.Frame.Team.Text = "Trainer"
end
end
end)
end)