Hello, I created a script to have a Nametag, the problem is that when applying it, it removed the old default Nametag so the players can’t see the names of other players. I know it’s possible to create another TextLabel and put TextLabel = plr.Name but when I do that the names can’t be zoomed in from far. I would like to know if there is a solution to make my new Nametag complementary with the original Nametag (instead of deleting it). I put you a picture of what happens in game and the script below. 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 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
if uppertext.Text == "90" then
uppertext.TextColor3 = Color3.fromRGB(49, 153, 26)
secondtext.TextColor3 = Color3.fromRGB(49, 153, 26)
end
end
end)
end)