I have code that will generate a small part around the mouse, and I need to detect if this part touches any part named "HitBox". The problem is, "HitBox" is can collide false, so :GetTouchingParts() doesn't work. A sample of code:
local parts = deletePart:GetTouchingParts() -- Where it does not detect the hitbox
local hitBox
for i, part in pairs(parts) do
print(part.Name)
if part.Name == "HitBox" then
hitBox = part
break
end
end
print("OI!")
if hitBox then
PlacementModule:Delete(hitBox.Parent)
end
end
Any help is appreciated, thanks!

2 comments
Use region3.
Could you give me a code sample?