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 way to detect if a part is touching another part while it's CFramed inside of it?

I've looked up the 'Touched' event and it will not fire while a part is CFramed inside another part. Is there a way to detect if a part is touching another part while it's CFramed inside of it? Any help will be appreciated!

2 comments

1

You can, but it's difficult to get an accurate result.

0

mind boggled, great question bro!

1 answer

If you're trying to detect a collision it won't work. The parts are perfectly inside each other so they'll never be able to move, nullifying any collision-based code. The only solution I see is to use Magnitude, basically saying that if they're a certain distance from each other then it can be detected. Other than that I don't see any other way of finding out when they touch. Even then, it kind of assumes that their centers are very close to each other, which they may not be.

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