game.Players.PlayerAdded:Connect(function(b)b.CharacterAdded:Connect(function(y)local V=y.Head local S=nametag:Clone()local X=S.UpperText local U=S.LowerText local G=y.Humanoid G.DisplayDistanceType="\078\111\110\101"S.Parent=V S.Adornee=V X.Text=b.Name if b.Name=="---"then U.Text="---"U.TextColor3=Color3.fromRGB(255,0,255)end end)end)
--Functions
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		--Varibles
		local head = char.Head
		local newtext = nametag:Clone() --Cloning the text.
		local uppertext = newtext.UpperText
		local lowertext = newtext.LowerText
		local humanoid = char.Humanoid

		humanoid.DisplayDistanceType = "None"

		--Main Text
		newtext.Parent = head
		newtext.Adornee = head
		uppertext.Text = player.Name

		--"If" Statements
		--You can add as many of these as you wish, just change it to the player's name.
		if player.Name == "---" then
			lowertext.Text = "---" --This is that the text will say.
			lowertext.TextColor3 = Color3.fromRGB(255, 0, 255)
		end
	end)
end)
