Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why won't it set the text?

Asked by
OniiCh_n 410 Moderation Voter
10 years ago

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)

Answer this question