local NameTag = script.NameAbovehead
game.Players.PlayerAdded:Connect(function(plr)
print(plr)
wait(2)
local PlrName = plr.Name
local Character = plr.Character
local Head = Character:WaitForChild("Head")
NameTag.Name.Text = PlrName
NameTag:Clone().Parent = Head
end)
ServerScriptService.NameTagScript:9: attempt to index string with 'Text' - Server - NameTagScript:9

3 comments
NameTag doesnt have a Text property in its name. just change from NameTag.Name.Text to NameTag.Text
.Name.Text seems recurrent. TextLabel.Name returns the name of Text object. TextLabel.Text returns the value of Text object. Do you mean NameTag.Text?
name is a textlabel inside of the billboard gui probbaly should have named that diffrently