#Having trouble with touched and anchored

1 messages · Page 1 of 1 (latest)

elfin venture
#

I have a part that whenever it touches other parts, makes that part get destroyed, however, it wont work if the part is anchored (the part that touches other parts)

#

I have it moving towards the part

uncut vortex
#

So you're anchoring the part that's supposed to move?

elfin venture
elfin venture
uncut vortex
elfin venture
#

no

#

normal script

uncut vortex
#

You know you don't have to attach a script to a part to delete it yeah?

Any errors or warnings you're seeing?

elfin venture
#

no errors or warning

fleet riverBOT
#

studio** You are now Level 1! **studio

elfin venture
uncut vortex
elfin venture
#

they aren't anchored, also I did have them anchored before and I just tried it again and it destroyed them

uncut vortex
elfin venture
#

let me try to re-state

I have a part that get moved every half second, when it touches parts it adds a script to them that makes them destroy themselves essentially, however when the moving part is anchored it no longer registers anything when it touches a part after being moved

#

however I need this part anchored as I am going to make it move through a map, and for that I need no collison on it, so it needs to be anchored

#

(so it doesnt fall through the map)

uncut vortex
elfin venture
uncut vortex
#

Looked it up, from the docs:

This event only fires as a result of physical movement, so it will not fire if the CFrame property was changed such that the part overlaps another part. This also means that at least one of the parts involved must not be Anchored at the time of the collision.

elfin venture
#

got it, even if the destructible parts are not anchored it does not work

#

do you want the rblx file

#

?

#

or screenshare or smth

uncut vortex
#

So you have to find a different way to handle the flood.

I think it'll be easier if, after you move the flood part, use GetTouchingParts with a TouchInterest object parented to the flood itself so the CanCollide being false won't matter

elfin venture
#

got it Ill try to use that then