#checking mid-tween parts

1 messages · Page 1 of 1 (latest)

coral basalt
#

how to check if a mid-tween part is touching another part since .touched doesnt work

toxic meteor
#

spatial query like workspace:getpartsinpart, but .touched should work maybe your code is wrong 🤷

coral basalt
#

tween is started in module script

#

the touched script is in server

toxic meteor
# coral basalt nope it doesn't.

oh, well then, since you tried it once and concluded it doesn't work, it musn't be possible at all and there is no plausible remote chance this may be in error and your code is definitely not wrong and it is now simply just a fact that tweenservice cannot possibly trigger .Touched in any possible way.... even though it can:

#

in fairness i tested this and tweening cframe directly won't trigger touched events because touched is based on physics and collisions and directly setting the position won't trigger a physics update specially between anchored parts (or is at least rather glitchy/unreliable) so the trick as to how i did that in the recording is unanchoring the moving part and giving it an AlignPosition and tween that instead so the part is subject to physics.

#

sorry if that was a bit harsh, the point of that is to say you should always be questioning what you know and how you know it ;p