Walk animation on custom character glitchy!

So i have a custom character and the walk animation is glitchy. walkanim.wmv (1.2 MB)

I actually know what is causing this to happen. I am using humanoid.running to toggle the animation and a collision with the player is causing the animation to rapidly stop/start.


How would i prevent this from happening? are there any alternatives to setting a walk animation?

1 Like

Rather than animation:Stop() use animation:Pause() and instead of Animation:Play() use Animation:Resume()

Edit:

This is actually wrong, you should use AdjustSpeed instead since no resume function exists.

2 Likes

Oh, i didnt realise there was a resume function. Thank you very much.

Sorry, I was reading the wrong API there is no resume function however play fills the role of this, use :play

1 Like

You can use AdjustSpeed, I was accidentally reading the resume function of sound!

1 Like

I dont see how adjust speed is supposed to help me here. The problem is that the animation keeps rapidly stopping and starting due to the isrunning connection stopping and starting. I uploaded a video you can see what i mean.

I tried recording timeposition and setting it after when the animation stops or starts that doesnt work either

You can use AdjustSpeed, set it to 0 when you would stop and set it to 1 when you want to play.

This will pause and play the animation.

1 Like