Check if a part is within bounds (cframe and size)

I was wondering how I could check if a part is within bounds of another “fake part”
Similar to how GetPartsBoundsInBox works by providing a cframe and size I was wondering if I could provide a cframe and size and figure out if a part is within those bounds.

The reason I cannot just use GetPartsBoundsInBox is because I am working on a plugin and that wouldn’t support parts with CanQuery disabled.

All help is greatly appreciated thanks!

Example of what I envision

local function IsInBounds(part,cf,size)

if IsInBounds(part,cf,size) then
-- proceed
1 Like

I dont believe this works with parts that have CanQuery enabled.

Heyyyy so there’s this property under OverlapParams

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.