I'm trying to get the player's name on to a textlabel when they first spawn in.
local player = game.Players.LocalPlayer
local plrGui = player.PlayerGui.HealthGui.HealthHud.BorderForHealth.TextLabel
function PlayerNameGoToHealthbar()
plrGui.Text = player.Name
end
script.Parent.PlayerAdded:connect(PlayerNameGoToHealthbar)
This does nothing...Please help?

3 comments
Weird...it doesn't work for me.
try adding a wait and make sure this is in a local script in the starterGui folder
It worked! Thank you.