Walking Animation Bug

Hello, I wasn’t really sure where to put this as it is kinda a mix of animation/scripting. So do please let me know if I need to remove/move this post.

Note: I am a scripter myself, but I don’t have a chance to work on animations that much. That is why I am having problems.

  1. What do you want to achieve? I have custom animations in my game and I need them to all work.

  2. What is the issue?
    All the animations work, but there is a slight bug with the walking. Sometimes if you like fall the running animation will start playing. video here

  3. What solutions have you tried so far?
    I’ve looked all over the forums, youtube, developer hub, and a few friends. None could give me a slight idea to whats wrong.

So far I’ve tried setting the custom animations when the player joins

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local humanoid = char:WaitForChild('Humanoid')
			local animateScript = char:WaitForChild("Animate")
			animateScript.run.RunAnim.AnimationId = "runIdHere"  
			animateScript.walk.WalkAnim.AnimationId = "walkIdHere"   
			animateScript.jump.JumpAnim.AnimationId = "JumpIdHere"   
			animateScript.idle.Animation1.AnimationId = "idleIdHere"
			animateScript.idle.Animation2.AnimationId = "idleIdHere" 
			animateScript.fall.FallAnim.AnimationId = "fallIdHere"
            -- id looks like rbxassetid://idHere
	end)
end)

I’ve also tried to just change the default ids in the roblox animator script to the custom ids which didn’t work.

If any of you could help just a little that would be great as it’s kind of annoying sometimes lol. Thanks for reading.

2 Likes

Hey check out these posts… Changing Animation Issue

Heres a resource-full video - How To Add CUSTOM PLAYER ANIMATIONS In ROBLOX Studio! - YouTube :wink:

for_, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
 playingTracks:Stop(0)
end

This could fix your problem ^

:slight_smile:

Try playing around with Animation Priority. Maybe giving the walk animation a lower priority will do the trick.