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

How do I get the name from a player?

Asked by 7 years ago
Edited 7 years ago

How do I get the name from a player? Example: I want to print the name of the player who recieves cash, How would I get the player's name? Here's my script for printing, I want to replace "Player" with the Player's name!

print("Player Teleported:Cash Given")
0
Player.Name i would do this as an answer but i dont really have an explanation for it other than it returns the Name farrizbb 465 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Assuming you have the player instance stored in a variable called player,

print(player.Name.." Teleported:Cash Given")
0
yes! I do. Thanks so much. IfIWasntSoSwag 98 — 7y
Ad

Answer this question