Hello, so I’ve been working on a GUI which allows you to change your tags to a different group.
My issue:
It’s not changing the loading text to the group name/rank.
Here’s the GUI:
The Explorer:
Code:
-- RollViral's, Don't touch,
local group = game:GetService("GroupService"):GetGroupInfoAsync(14775744)
local name = group.Name
local groupID = 14775744 -- Put your Group ID here!
local button = game.StarterGui.NameTagManagement.Main.ScrollingFrame["Prism of Divinity"].Button
local player = game.Players.LocalPlayer
player.CharacterAdded:Connect(function()
game.StarterGui.NameTagManagement.Main.ScrollingFrame["Prism of Divinity"].MainText.Text = name .. player.Name
end)
button.MouseButton1Click:Connect(function(player)
local groupRank = player:GetRoleInGroup(groupID)
local clone = script.Parent.Button.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.MainFrame.Group.Name1.Text = name
clone.MainFrame["Name-Rank"].Text = player.name .. 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.Text = name
clone.Frame.Rank.Text = player.name .. groupRank
end)
end)