Room.FindPlayersInsideVolume(Vector3 center, number radius)
Finds list of players which are inside the specified spherical volume defined by center and radius.
Parameters:
Name | Type | Description |
---|---|---|
center | Vector3 | The center of the spherical volume. |
radius | number | The radius of the spherical volume. |
Returns:
type | Description |
---|---|
MLPlayer[] | List of players which are inside the specified spherical volume |
Usage
---@type Vector3
local center;
---@type number
local radius;
local val0 = Room:FindPlayersInsideVolume(center, radius)