Text not showing the same text as parent

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

image

If you could help or send me in the right direction, that would be great.
Thanks

Why are you cloning the shadows (plrShadowClone & gShadowClone)? They’re already children of the BillboardGui, so they’ll already exist within the playerClone & groupclone clones.

You can quite easily fix this by changing the defintion of the shadow-labels to the ones present within your playerClone & groupclone clones like this:

local groupclone = groupTag:Clone() 
local plrClone = plrTag:Clone()
local plrShadowClone = plrClone.plrName.Shadow --changed!
local gShadowClone = groupclone.plrName.Shadow --changed!

I haven’t done any testing myself, but that should do the trick. Good luck with your project!

1 Like

This worked. Thank you for your help.