Skip to content

Api > Room > FindPlayerByName()


Room.FindPlayerByName(string name)⚓︎

Looks for the player in room with a specific name.

Parameters:⚓︎

Name Type Description
name string Name of the player.

Returns:⚓︎

type Description
MLPlayer The player if found, Nil otherwise.

Usage⚓︎

---@type string
local name;


local val0 = Room:FindPlayerByName(name)