Hierarchy of the script:

  • ScreenGui
  • Frame
  - LocalScript
  - TextLabel

For some reason, the following script won't work. No errors in the output or anything.

game.Players.PlayerAdded:connect(function(plr)
	print(plr.Name)
	wait()
	script.Parent.TextLabel.Text = plr.Name
end)