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

Getting the name of a player with their UserId?

Asked by 5 years ago

Is there a way you can get the name of a player with their UserId WHEN they are NOT in-game?

1
Yes. Players:GetNameFromUserIdAsync() User#19524 175 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago
local UserId = 0
print(game:GetService("Players"):GetNameFromUserIdAsync(UserId))
Ad

Answer this question