Platform User ID||doc136138

September 20, 2022

Format

 Player.platformUserId 
  • The class to which the attribute belongs:Player

Description

Platform user ID, the unique identifier of the user account, knowing the player's platform ID can passGame.GetPlayerByUserIdto get the player instance.


Value Returned

type Description
int Platform User ID


Code Samples

Output the player's platform user ID

local userID = player.platformUserId 
print(userID)