So i have this npc model that i created and it moves using pathfinding. Sometimes the npc's arms would get stuck to the ground since it has long arms when it turns around so i'm wondering if there's a way to check if their arm went through the baseplate and if it did then change it's position back to normal. Also, sometimes the other limbs would get stuck also so it won't be efficient if i had to make the same lines of code for every single limb that gets stuck.

3 comments

0

use :GetTouchingParts() which returns a array of parts that are INTERSECTING (not directly touching it), then you could check the array length to see if anything is intersecting with it

0

Thanks