Overriding default Animations not working

Trying to override the default animations are not working on the character.

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAppearanceLoaded:Connect(function(Character)
		local Humanoid = Character:WaitForChild("Humanoid", 60)
		
		for _, PlayingTrack in ipairs(Humanoid:GetPlayingAnimationTracks()) do
			PlayingTrack:Stop(0)
		end
		
		local AnimateScript = Character:WaitForChild("Animate", 60)
		AnimateScript.run.RunAnim.AnimationId = "rbxassetid://656118852"
		AnimateScript.walk.WalkAnim.AnimationId = "rbxassetid://656121766"
		AnimateScript.jump.JumpAnim.AnimationId = "rbxassetid://5057749643"
		AnimateScript.fall.FallAnim.AnimationId = "rbxassetid://5069155413"
	end)
end)
1 Like

You don’t need to do it like this. Heres some steps to override the animations.

  1. Press Play in Studio
  2. Go to your character and copy the “Animate” script
  3. Stop game and paste the script into StarterPlayer>PlayerCharacterScripts
  4. expand that, and find the animation which you want to change
  5. expand that one more time, and you can see the Animation and you can replace it with the AnimationId you want.
3 Likes

Wouldn’t this be doing literally what that script is.
Also the Animation Ids are set properly, when doing it the way I have done.

1 Like

Have you tried changing the animation’s priority?

1 Like

I will have the Animator do this as soon as he get’s back

Yeah it would since the Animate scripts uses a changed listener. But the way I explained it, is more efficient. And also make sure the animations are loading properly. To check this see if theres no errors on output window.

This happens to me too, what I do is put a local script in StarterCharacterScripts and change the animation IDs from there. For some reason that works there but not in a server script.

The only errors are from the 2 animations I know are broke and that’s happening in the Preload Async

Note that some animations won’t work when you are not the owner.

2 Likes

Even just trying to load them through a script?

1 Like

Yes
meeting 30 character limit

Made sure I’m the owner and it’s still not working
They’re just not playing.

Copying the whole Animate script, and changing the values directly in the script seemed to work.

1 Like

Yeah, so what I said on the first reply worked?

Incorrect…

You told me to change the animation Ids of the animations in the script children, not the script literally.
I had to change them in the directly in the animNames table in the script.

1 Like

Oh, you changed the values in the script?

Yes, that’s when it finally wanted to work. :confused:

1 Like

Ah, sorry. that always worked for me, just changing the AnimationId.