How to fix the NPC sliding issue?

I have an issue, my NPC slides while moving, even though HipHeight is set correctly.

image

Disabling the collision of other NPC parts does not affect the sliding effect either.

I have never had this error with other blender models with separate limbs that I’ve made before, but this time I made the character’s body a completely solid part and I can’t make everything separate because then the character’s rig would break

You could add extra friction to every part of its body using the custom physical properties property under a base part. I’m not sure which friction would be the best so its up to you to experiment

1 Like

Even though I did everything as you advised me, it did not solve the problem, the friction helped a little to reduce the sliding but still it is still there, of course I can still increase the density of parts but then there will be another problem because then NPC will fling players because of the large mass of parts

I think it might be because, while the actual NPC when moving is going to a specific location, the NPC is looking at you, so it seems as if it is just gliding.

2 Likes

No, this NPC is literally sliding, like the HipHeight is wrong, but I checked a bunch of different height options and it was the most optimal with a gap of 0.001 - 0.003 studs, I tried to set HipHeight lower but in cases when HipHeight is 4.16 - 4.17 studs then the NPC can not even move from the place and if you set the value of HipHeight exactly 4 then the NPC immediately fling in random direction

This might be a pretty lame fix, but instead of just using MoveTo, have you tried:

  1. Anchoring the NPC so that it can’t move, but animations still work.
  2. Instead of using :MoveTo(), just tween the position.
  3. While moving, play the moving animation.

Since it could just be an issue with the actual NPC model.

1 Like

Nah, then it would be a big strain on game performance resources to make it smooth, and TweenService doesn’t always work correctly in this type of work

I see. Have you tried replacing the NPC model to, lets say a simple r15 rig, and checking if your code works first?

If it works, then I believe the issue would lie within the actual model itself Perhaps while rigging it, there was an issue.

I’m not sure what other issue there would be. As you said, there was an issue with the HipHeight, and changing it to something as minimal as 0.001 shouldn’t even be necessary.

1 Like

I tried the script on my other models and it worked fine, maybe the problem is really with the rig