Skip to main content

Room.FindPlayerCloseToPosition(Vector3 location)

Looks for the player which is closest to the specified location.

Parameters:

NameTypeDescription
locationVector3Specified location.

Returns:

typeDescription
MLPlayerThe closes player to the location.

Usage

---@type Vector3
local location;


local val0 = Room:FindPlayerCloseToPosition(location)