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.
COMMUNITY QUESTION
[Solved] How can i check if a part is stuck to the ground and then unstuck it?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
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
https://developer.roblox.com/api-reference/function/BasePart/GetTouchingParts
Thanks