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

How can I make a player name appear on any GUI?

Asked by 10 years ago

I tried using this script:

gui = PATHTOGUI

game.Players.PlayersAdded(function(player)
gui.Text = Player.Name
end)

But I cant find the error in it.

1 answer

Log in to vote
2
Answered by 10 years ago
gui = PATHTOGUI

game.Players.PlayerAdded(function(player)
gui.Text = player.Name
end)

Try that.

0
Oh and "gui" has to be textlabel fireboltofdeath 635 — 10y
0
This is the same script I used. platinumninja7 0 — 10y
1
You put Player.Name but the variable is player Can you just try the script then tell me? fireboltofdeath 635 — 10y
1
you did Player.Name, but it should be player.Name because the variable was player. Firebolt's script should work. Tempestatem 884 — 10y
View all comments (3 more)
0
Thank you, Tempestatem. fireboltofdeath 635 — 10y
0
No, I fixed it. I used the same script but used PlayerAdded:connect in line 4. platinumninja7 0 — 10y
0
Can you still accept my answer? fireboltofdeath 635 — 10y
Ad

Answer this question