Hi im trying to find if its possible to get a model in using the overlaspeparam function . right now all what it gives me are only the parts and i can’t get the parts parent. I just want to know if it’d be possible to reference the parts parent (aka the model).
Any help would be appreciated.
Code:
local function getpartstouching(touchingpart:BasePart)
local filter = OverlapParams.new()
filter.FilterDescendantsInstances = {touchingpart}
filter.FilterType = Enum.RaycastFilterType.Blacklist
local cf, size = touchingpart.CFrame, touchingpart.Size
return workspace:GetPartBoundsInBox(cf, size, filter)
end
while true do wait(.1)
print(getpartstouching(script.Parent))
end