Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Touched triggered if Anchored?

Asked by
xApRix 25
9 years ago

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

Log in to vote
0
Answered by 9 years ago

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.

0
With a bit of research I decided to go with the "GetTouchingParts" function, thanks for your help though. :) xApRix 25 — 9y
0
Anytime. Good, you're figuring things out yourself which is also important! alphawolvess 1784 — 9y
Ad

Answer this question