Why is NPC Experiencing Trouble When Walking in a Straight Path?

I’ve been making an NPC that goes after any placed buildings by the player. Then it’s supposed to destroy it but I haven’t made it do that yet.

Throughout doing this I noticed that from using “MoveTo” in making it move, although it’s moving to it’s destination, in the process it glitches around to a very noticeable amount and is nowhere near being smooth.

Video of the glitching NPC

I’ve made all the Baseparts inside of it massless because when I don’t it doesn’t reach it’s destination at all. I’ve also tried changing the friction of it’s feet to 0. And additionally I placed another NPC there with the same script for comparison of the movement and to see that the issue must not be coming from the script.

Up to now, the only issues that I think could be potentially causing this issue is the fairly large size of the NPC…
bandicam%202019-05-04%2006-13-49-888
…and the fact that the way it’s shaped isn’t exactly balanced which I’m not sure but could be causing it to slowly fall backward, making it move backward. Also if the issue is due to something like lack of a walking animation, I do have a walk animation that I’ve made and used with this NPC but for whatever reason whenever using “MoveTo” it uses the idle animation while walking, therefore I just disabled the animations for now. If these aren’t the causes of the problem then it’s something I’m unaware of. Please help!

1 Like

It looks like it’s a problem with how the body parts are named. Have you tired to change them?

The video is too low-resolution for me to really be able to tell, but I know I’ve had issues before with humanoids moving weird in a similar way if I forget to set their hip height. Could that be the issue?

4 Likes

I have everything named but it maybe this could be the result of because the NPC doesn’t have a RightLowerLeg or a LeftLowerLeg.

1 Like

Oh, I didn’t set the hip height. Let me try that out. Also I’m sorry about the resolution I operate a trash computer. :weary::sob:

I don’t do stuff like this, but on the Roblox Wiki there’s a tutorial called PathFinding, you can take your NPC from point A to B, is that what you tried doing?

Yup, except I wasn’t using the Pathfinding Service, I was using I guess the “old fashioned” way having it wait for the part to exist then making it move to it once it does.

Thank you, this worked. Now it’s walking perfectly fine except the NPC is now walking with it’s feet completely underground for whatever reason.

It shouldn’t be related, as that particular bug had to do with a network ownership transfer bug back in the day.

It’s all fixed now thanks all of you!

omg lifesaver --------------------------