Only one player get's custom name tag!

Hello so I have the problem that only one player from the server is getting the nametag :frowning:

function NameTag(plr)
	plr.CharacterAdded:Connect(function(character)
		script:WaitForChild("Player"):Clone().Parent = character:WaitForChild("Head")
		
		character:WaitForChild("Head").Player.Text.Text = plr.Name
	end)
	script:WaitForChild("Player"):Clone().Parent = plr.Character:WaitForChild("Head")

	plr.Character:WaitForChild("Head").Player.Text.Text = plr.Name
end

game.Players.PlayerAdded:Connect(function(plr)
	NameTag(plr)
end)
1 Like

Try adding print statements at the start and end of the PlayerAdded event, NameTag function, and CharacterAdded function. I think your code is getting stuck somewhere, probably on one of the WaitForChild calls. It’s not obvious why that would make it get stuck but thats a good place to start looking.