I’m making an Overhead GUI for a player’s name and rank in a group. There are 2 textLabels, one for the main text and the child being a shadow. In the script, I’m able to set the main text to the player’s name and rank, but the shadows won’t show the same text.
There are no errors in the output.
Script
local groupTag = game.ServerStorage.OverheadGUI:WaitForChild("GroupTag")
local plrShadow = plrTag.plrName:WaitForChild("Shadow")
local groupShadow = groupTag.plrName:WaitForChild("Shadow")
local admins = {1367496218, 45786295, 120452499, 134834480, 474191072}
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
wait()
local groupclone = groupTag:Clone()
local plrClone = plrTag:Clone()
local plrShadowClone = plrShadow:Clone()
local gShadowClone = groupShadow:Clone()
plrClone.Parent = char.Head
plrClone.plrName.Text = plr.Name
plrShadowClone.Text = plrClone.plrName.Text
if plr:IsInGroup(5979621) then
groupclone.Name = "GroupTag"
groupclone.Parent = char.Head
groupclone.plrName.Text = "Member"
groupclone.plrName.TextColor3 = Color3.fromRGB(71, 151, 255)
gShadowClone.Text = "Member"
for _, v in pairs(admins) do
if plr.UserId == v then
groupclone.plrName.Text = "Owner"
groupclone.plrName.TextColor3 = Color3.fromRGB(230, 40, 50)
gShadowClone.Text = groupclone.plrName.Text
end
end
end
wait()
end)
end)
Workspace
If you could help or send me in the right direction, that would be great.
Thanks