Run Animationen not playing

As the title says, I want to change the walking animation.

I watched a tutorial and wanted to test it before working on the real animations. My jump and idle animation worked, but the walking animation doesn’t.

I have searched on google for possible solutions but nothing has really helped me. I have also created different types of running animations and checked my script. I also made sure that loops and movement are enabled.

local Players = game:GetService("Players")
local runAnimationId = "rbxassetid://14197880489" 
local jumpAnimationId = "rbxassetid://14197813611"
local idleAnimationId = "rbxassetid://14197836660"

local function onCharacterAdded(character)
	local hum = character:WaitForChild("Humanoid")
	
	local animateScript = character:WaitForChild("Animate")
	
	animateScript.run.RunAnim.AnimationId = runAnimationId
	animateScript.jump.JumpAnim.AnimationId = jumpAnimationId
	animateScript.idle.Animation1.AnimationId = idleAnimationId
	
end

local function onPlayerAdded(player)
	player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
	
end

game.Players.PlayerAdded:Connect(onPlayerAdded)

Where is the mistake and how can I solve it?

Credit: The script is from RustySillyBand`s tutorial.

1 Like

I had the same issue before, but it seems like it’s the issue of the animate script (which really needs polishing tbh) so I just coded it from scratch but for ur case using MaximumADHD’s rewritten animate script is pretty gud alternative.

Ohh thats way more complicated than I thought. Do I just have to copy the script and paste it into a normal script?

I’m not 100% sure that it’s the issue but It worked in my case :person_shrugging: so…

Also I think pasting it in a local script and placing it in StarterCharacterScripts should (hopefully) replace the default script

1 Like

I have tried, but unfortunately it does not work. The normal animation script is still there. I find it very strange because jumping or idling works but running does not. Thanks anyway

Oh in that case, its probably not the animate scripts fault (can’t say for sure tho)

How I did it in my game was to listen for PlayerAdded and connect a function to CharacterAdded which would destroy the default script and add in the new one

I dont know if I did anything wrong but heres the script I made to delete the default script:

local Players = game:GetService(“Players”)

local function onCharacterAdded(character)

local animateScript = character:WaitForChild(“Animate”)
animateScript:Destroy()

end

local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)

end

game.Players.PlayerAdded:Connect(onPlayerAdded)

It works but now my character has no animations at all.
image

Maybe someone else has another idea how to solve the problem