Skip to content

GetPlayerById

Description

GetPlayerById is a Function
Returns the player with the matching user ID if they exist in the world.

Example
local testVariable = GetPlayerById(1)
Usage

network usage: Any (Client or Server/Host)
returns: Player
parameters:
- id (int)