Nametag help (i have a good script but there is a little problem)

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)

Thanks to you !

1 Like

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

The problem is that if I remove it, players can’t see their name and the name of other players

1 Like

Just make it to where if its the player, turn off. basically, if game.Players.LocalPlayer then
nametag.visible = false
end

Unfortunately it doesn’t seem to work. I specify that it is a script located at ServiceScriptService

Someone ? Maybe I can change some things in the script and put it locally in startercharacter?

No one have an idea of how i can do this ?

if you want a player’s nametag to disappear only for themselves, it has to be in a local script or else it will disappear for everyone else too.

1 Like

Ok thanks, I’ve tried everything to adapt my script to be local but it doesn’t work, nothing works. I don’t think I have the skills to do this

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

thank you i will try some scripts, hoping to find the right one

1 Like

BillboardGui.PlayerToHideFrom = Whatever player it is on

1 Like

BillboardGui’s have a property called PlayerToHideFrom, you set that property to the local player and in theory, it shouldn’t be visible to the player.