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

What is the path for the name of a player?

Asked by 10 years ago

I looked all over the Wiki, and couldn't find it. I be its something like game.workspace.localplayer.name Or something along those lines right?

2 answers

Log in to vote
2
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

In a local script

plr = game.Players.LocalPlayer

-Thank me by accepting this answer/bumping up my reputation!

0
Oh so its in players. Hehe, no wonder I couldn't find it. Thank for the help. :) LuckTron 15 — 10y
Ad
Log in to vote
0
Answered by
Sublimus 992 Moderation Voter
10 years ago

If you have a localscript you can do this:

print(game.Players.LocalPlayer.Name) -- This script must be in the PlayerGui or the character

Answer this question