Problem with player name tag

I have problem with my code. I think that it is good, but it shows that the taglabel is not parent of billlboardgui.

local ptags = --path

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		
		repeat wait() until character:WaitForChild("Head")
		local plrtag = ptags:Clone()
		plrtag.PlayerNameLabel = player.Name
		
		if player.UserId == 1905648047 then
			plrtag.DeveloperRank.Visible = true
		else
			plrtag.DeveloperRank.Visible = false
		end
		
		plrtag.Parent = character:WaitForChild("Head")
	end)
end)
1 Like

You forgot to add .Text here which will eventually error

2 Likes

It worked thank you sm for help!!!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.