Skip to main content

Room.FindPlayersInsideVolume(Vector3 center, number radius)

Finds list of players which are inside the specified spherical volume defined by center and radius.

Parameters:

NameTypeDescription
centerVector3The center of the spherical volume.
radiusnumberThe radius of the spherical volume.

Returns:

typeDescription
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)