
CanCollide/CanTouch on the given part are not considered, just the Part’s geometry.Ī key thing to note with these is the Box and Radius overlap queries will only check against Part bounding boxes (the blue box shown when you select a Part). The given part must be present in the same WorldModel (workspace) as the parts you want to query. Returns a table of all BaseParts who overlap the given part.Objects WorldRoot:GetPartsInPart(PartInstance part, OverlapParams overlapParams) Returns a table of all BaseParts whose bounding boxes overlap the given sphere at position and radius.Objects WorldRoot:GetPartBoundsInRadius(Vector3 position, float radius, OverlapParams overlapParams) cframe is for the center of the box, and orientation is taken into account. Returns a table of all BaseParts whose bounding boxes overlap the given box at cframe and size.Objects WorldRoot:GetPartBoundsInBox(CFrame cframe, Vector3 size, OverlapParams overlapParams)

Here are three new functions that can be used:

It’s never been easier to figure out what Parts are within a given box, radius, or other Part! New Spatial Queries We are adding new WorldRoot (Workspace) APIs for performing spatial queries on BaseParts.
