Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

is there a simple way to detect if a part intersects any other parts?

I know there's something like this for CanCollide parts, but I'm wondering if there's sometihng for parts that aren't CanCollide.

5 comments

0

Touched still fires even if either part is cantcollide.

0

Touched won't work for my purposes, since I want something more reliable with CFrames.

1

This is not something trivial. You may want to use some libraries. Here's one that would probably do the job. http://www.roblox.com/Rotatable-Region3-item?id=227509468

0

I actually don't need rotation. But thanks for the Region3 Idea!

1

You can always do some math. I think there is something that allows you to check everything making contact with a given part, not sure.

1 answer

I wasn't given any code to work with, So I'll simply say use an if statement. Make the if statement detect a part's cancollide, and when 1 parts touches that can collide, use a print("") to detect it.

1 comment

0

This isn't a very informative answer. If I was in a situation where I could've used .Touched or an if statement, I wouldn't be asking the question.

This discussion is preserved as it was. New answers, comments, and votes are closed.