Room.FindPlayerCloseToPosition(Vector3 location)
Looks for the player which is closest to the specified location.
Parameters:
Name | Type | Description |
---|---|---|
location | Vector3 | Specified location. |
Returns:
type | Description |
---|---|
MLPlayer | The closes player to the location. |
Usage
---@type Vector3
local location;
local val0 = Room:FindPlayerCloseToPosition(location)