Hey there! So I made this nametag, but there is one issue. So at first It seemed like the nametag would only show for one player. But soon I discovered that the nametag would only get added to the player if the player did not have a packaged head. Example of packaged heads are “Woman Head”, “Trim Head”, and any head that is not the default.
Here is the nametag cloning code:
local serverSt = game:GetService("ServerStorage") --You can change this to ServerStorage for more security.
local nametag = script.Tag
local head = character.Head
local newtext = nametag:Clone(nametag)
local NameTag = newtext.NameTag
local RankTag = newtext.RankTag
local humanoid = character.Humanoid
humanoid.DisplayDistanceType = "None"
newtext.Parent = head
newtext.Adornee = head
NameTag.Text = player.Name --Changes the text to the player's name.``
Also this is not the entire code. But the cloning and parenting part.
Firstly there shouldn’t be any parameters inside of your Clone() function
Also when placing it into the head I would personally do local Head = character:WaitForChild("Head") to 100% ensure that the head is loaded before I proceed with the rest of my code, if there’s no other errors then you should look into potentially detecting if it is a special head and if so place the gui inside of the HumanoidRootPart or UpperTorso instead