I was trying to make a billboardgui that will say the players name. Everything went fine until I started to put the players name on the textLabel. Every time I tried something it would not work.
I don't know if i'm being dumb and the problem is right in my face, but I can't seem to figure out why it does not work.
(This is the code.)
game.Players.PlayerAdded:Connect(function(Plr)
Plr.CharacterAdded:Connect(function(Char)
plrNameUI:Clone().Parent = Char.Head
plrNameUI.plrName.Text = Plr.Name
end)
end)
(And This is the line i'm talking about.)
plrNameUI.plrName.Text = Plr.Name
I tried printing out the name and it worked perfectly fine. I also tried while in game to change it. it worked fine. I tried my hardest to find what the problem is, but can't. I hope I explained everything.

2 comments
oh i forgot. here is what i did to fix it. "Char.Head.plrNameUI.plrName.Text = Plr.Name"
oh lol