Hi recently I’ve been experimenting with the overlaps param function and I put this group of parts in it, right now I’m trying to figure out if its possible to get the part it detects whole group and make it so I can get the parent of the part and manipulate the whole group with it.
Code,
local function getpartstouching(touchingpart:Model)
local filter = OverlapParams.new() -- this creates what I want the filter to be.
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)) -- this finds the parts touching the other part
end
any help on what I should change would be appreciated.