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

Touched triggered if Anchored?

I have two parts. Both are anchored and set to move toward each other. I also have a script in them both that tries to detect when they touch via Part.Touched:connect(function(). My problem is that the scripts don't seem to acknowledge when they touch. I tried un-anchoring them and the whole thing worked fine. Does the "Touched" function require un-anchored parts to work? If so, is there any way I can get it to work without un-anchoring either of them?

1 answer

✓ Accepted answer

The Touched event does not fire when being CFramed. I think it use to not fire when touching an Anchored object but the Wiki doesn't say this, but I'm unsure. A way to make this work, an efficient and easy way I have no clue but you'd probably have to be pretty tricky like using some math (magnitude/raycasting) and such to figure it out.

2 comments

0

With a bit of research I decided to go with the "GetTouchingParts" function, thanks for your help though. :)

0

Anytime. Good, you're figuring things out yourself which is also important!

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