I have a Nametag system. It doesn't give any error but it doesn't display the players name. It just displays the name on the tag. I want it too display the players name. Also I have my own owner tag in it so it would display my name and the owner tag.
local rep = game:GetService("ReplicatedStorage")
local nametag = rep.NameTag
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local head = char.Head
local newtext = nametag:Clone()
local uppertext = nametag.UpperText
local lowertext = newtext.LowerText
newtext.Parent = head
newtext.Adornee = head
uppertext.Text = player.Name
if player.name == "starmelvin" then
lowertext.Text = "Owner"
lowertext.TextColor3 = Color3.fromRGB(255, 0, 0)
end
end)
end)
