Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

gui = PATHTOGUI

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

Try that.

7 comments

0

Oh and "gui" has to be textlabel

0

This is the same script I used.

1

You put Player.Name but the variable is player Can you just try the script then tell me?

1

you did Player.Name, but it should be player.Name because the variable was player. Firebolt's script should work.

0

Thank you, Tempestatem.

0

No, I fixed it. I used the same script but used PlayerAdded:connect in line 4.

0

Can you still accept my answer?

This discussion is preserved as it was. New answers, comments, and votes are closed.