Custom Animation Not Working

Hello,

I’m trying to add a custom jump animation.
When I test the game the animation doesn’t work. It is supposed to change the animation in the player’s character when they join the game. But the animation ID doesn’t change.

	Player.CharacterAdded:Connect(function(Character)
		Character.Animate.jump.JumpAnim.AnimationId = "rbxassetid://9104071089"
	end)
end)


image
image
image

The Animation Priority is set to action. The game is on my account and not on a group. So it can’t be that the animation is on my account. I do own the animation. I don’t see any mistakes in the script. Does anyone have the answer to this?

(I am new to scripting so please don’t get mad if it is a dumb mistake)

3 Likes

Go on the default Animate script (the one that’s in the screenshot you provided) and change the value in there as well as the AnimationId of jump. You can do so by playing the game in Studio, copying the Animate script, stopping the game in Studio and placing it in StarterCharacterScripts. From there you’ll be able to edit anything you’d like and it will be in effect once the player joins. If you still have issues let me know. :slight_smile:

1 Like

Thank you. That was the issue and now my animation plays.