How can i make :GetPartBoundsInBox() detect parts not in the default collision group

I’ve noticed :GetPartBoundsInBox() only detects parts with the default collision group, and I want it to detect parts in other collision groups that don’t collide with the default one. I can’t just switch to the default collision group because I need those specific parts to not collide with the default collision group. Is there a way to do it?

use a raycastParam in the call. filtering option choose Include, and your desired collision group