Skip to content

GetPlayerByUsername

Description

GetPlayerByUsername is a Function
Returns the player with the matching username if they exist in the world.

Example
local testVariable = GetPlayerByUsername("Toaster")
Usage

network usage: Any (Client or Server/Host)
returns: Player
parameters:
- username (string)