#Having trouble with touched and anchored
1 messages · Page 1 of 1 (latest)
So you're anchoring the part that's supposed to move?
it still moves, but it just doesnt effect the other parts anymore if it is anchored
Is a LocalScript moving the part?
You know you don't have to attach a script to a part to delete it yeah?
Any errors or warnings you're seeing?
no errors or warning
** You are now Level 1! **
I do know that yeah, however I just dumbed it down for the post and testing purposes, it starts making parts slowly transparent then get destroyed
I still think cloning a script is a bit overkill.
But anyway, if the destructable parts are also anchored, the Touched event won't fire.
they aren't anchored, also I did have them anchored before and I just tried it again and it destroyed them
If you want things to stay anchored, try GetPartsInPart to get all the things touching the part in some RunService loop.
But if this works great
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)
Okay, so are the destructable parts currently anchored?
You said they weren't now, so the destructables are not anchored at the moment, but the flood is anchored, yes?
they are not currently anchored, it does not matter if they are or not because they will still be destroyed either way
the flood is supposed to be anchored but it no longer works when anchored
I am saying this because anchored parts cannot trigger the Touched event on other anchored parts, so it does matter.
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.
got it, even if the destructible parts are not anchored it does not work
do you want the rblx file
?
or screenshare or smth
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
got it Ill try to use that then