Hello, I have a small problem. I created a nametag script that works except that there is a little detail that I don’t like. In fact, my name also appears above my head while I would like it not to be visible (as if I had no script). I put my script and a picture of how it looks in part. Could you tell me how to make my name disappear above my head while leaving the others? Thanks
local rep = game:GetService("ServerStorage")
local Clone = rep:WaitForChild("NameTag"):Clone()
local nametag = rep.NameTag
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
Clone.Parent = game.Workspace:WaitForChild(plr.Name).Head
local head = char.Head
local newtext = nametag:Clone()
local uppertext = newtext.UpperText
local secondtext = newtext.SecondText
local thirdtext = newtext.ThirdText
local humanoid = char.Humanoid
local wolves = Instance.new("IntValue")
humanoid.DisplayDistanceType = "None"
while wait() do
wolves.Value = plr:WaitForChild("leaderstats"):FindFirstChild("Wolves").value
newtext.Parent = head
newtext.Adornee = head
secondtext.Text = "/90"
uppertext.Text = wolves.Value
thirdtext.Text = plr.Name
if uppertext.Text == "90" then
uppertext.TextColor3 = Color3.fromRGB(49, 153, 26)
secondtext.TextColor3 = Color3.fromRGB(49, 153, 26)
end
end
end)
end)
Hello! I believe the name above your head is set to be: thirdtext.Text = plr.Name. If you want to remove it completely just delete local thirdtext = newtext.ThirdText and the other one
I would keep the server script and then add a local script that waits for the nametag to be added to the player’s character then destroys it on the client-side so it’s only gone for the player