Recently, I made a script for a zone that deals damage in increments, however, the OnTouched event does not work on parts with can collide turned off
is zone’s Anchored property is off?
No, otherwise it falls through the world.
I will assume that your zone has
CanCollide = off
Anchored = on.
Actually, theres no reason to OnTouch event not work with other parts ( other part should NOT be anchored ); you can consider checking your OnTouch function, or variables that could be wrong.
So should i weld the part with canCollide off to a part with cancollide on and anchored on?
no, I mean, if the other part’s Anchored property is set to true, then OnTouch event will not fire.
.Touched event does almost nothing with CanCollide property, but Anchored property.
otherpart should have Anchored property false so that it will fire touch event
No, the Touched event still fires with anchored parts. I’d say that CanTouch might’ve been turned off with CanCollide, so check that.
they do collide even if cancollide is off
even if it’s unanchored
the way to make part not able to fire the ontouched event is to turn of the “CanTouch” boolean in the colision properties
No, I said was that if two Anchored parts are intersecting, it doesn’t mean they are touching.