Overriding my default animate script's walking animation, but doesn't work

game.Players.PlayerAdded:Connect(function(plr)
	local char = plr.Character or plr.CharacterAdded:Wait()
	local animateScript = char:FindFirstChild("Animate")
	
	if animateScript then
		print("yes")
		local walkAnim = animateScript:FindFirstChild("walk").WalkAnim
		if walkAnim then
			print("ok")
			walkAnim.AnimationId = "rbxassetid://7045760212"
		end
	end
end)

So yeah, basically I tried print debugging, everything works but the AnimationId remains the default one even though I tried to set it to my custom animation id. Please help!

Maybe you can also try to use runAnim because walk is basically the slower version of run.
The default walkspeed of a player is always 16 so you might or might not change that if neccesary.

game.Players.PlayerAdded:Connect(function(Player)
      Player.CharacterAdded:Connect(function(Character)
          local animateScript = Character:WaitForChild("Animate")
          if animateScript then
              print("Animate loaded in")
              local walkAnim = animateScript:WaitForChild("walk").WalkAnim
              local runAnim = animateScript:WaitForChild("run").RunAnim
              if walkAnim and runAnim then
                  print("Walk and run animation loaded in")
                  walkAnim.AnimationId = "animation id here"
                  runAnim.AnimationId = "animation id here"
             end
      end
end)

Also try to change the animation priority to Core or Movement if this didn’t worked as intended.
Make sure to toggle the loop in your animation as well for a looping walking animation.

1 Like