How to give player a nametag above head

First, you create a BillboardGui and name it “Nametag.” Set the size to 4,0, 1,0. Set the StudsOffset property to 0, 3.5, 0. Put a TextLabel inside it. Change the Text to “Name.” Put the nametag in ReplicatedStorage. Next, create a server script and write this code:

local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local Players = game:GetService(“Players”)
local Nametag = ReplicatedStorage.Nametag

Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
repeat wait() until Character:FindFirstChild(“Head”)
local newNametag = Nametag:Clone()
newNametag.Parent = Character.Head
newNametag.Adornee = Character.Head
newNametag.TextLabel.Text = Player.Name
end)
end)

I hope this works. It did for me!

3 Likes