Check if any part of a part is within radius to another

I’m wanting to know if a part is within radius to another part. Problem is, since it relies on centers, larger parts have to be pretty much inside of another part to detect this. I want a way to check if any part of the blue part is within the green part WITHOUT using Touched.

local Distance = Player:DistanceFromCharacter(Green:GetPivot().Position)
if Distance < 9 then -- Within range

If it needs to be accurate (part geometry matters), use :GetPartsInPart with a sphere hitbox instead


Is there anyway to actually filter descendants? It has FilterDescendantsInstances but that seems to Blacklist them. I want it to only check for parts under a specific folder

OverlapParams are very similar to RaycastParams, you can use Enum.RaycastFilterType.Whitelist to specify that

1 Like