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

How do I make a textlable show a players name?

Asked by 4 years ago

I have been trying a lot to make this happen and looking for scripts but I cant find one that will work, can anyone help me?

1 answer

Log in to vote
2
Answered by
0msh 333 Moderation Voter
4 years ago

you said text label so I assume you're using a local script

you can simply do:

script.Parent.Text = game.Players.LocalPlayer.Name
0
A question, will the local script go inside the text label? O_OIMGONE 9 — 4y
0
it worked! I had to change your script a bit though, I made it look like this: O_OIMGONE 9 — 4y
0
game.Workspace.Player.Sign.SurfaceGui.SIGN.Text = game.Player.LocalPlayer.Name ( ALL OF THIS LOCAL SCRIPT WAS PUT IN STARTERPLAYERSCRIPTS! thanks for your help. and to be clear the PlayerSign is the object and the SurfaceGui is for the textlable. Thanks so much. O_OIMGONE 9 — 4y
Ad

Answer this question