Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does the output say the animation failed to load?

I have a script that changes the jump animation ID to a custom one, but the output says the animation failed to load. Anyone know why?

Jump ID Changer script:

game.Players.PlayerAdded:connect(function(plr)
	wait(1)
	plr.Character.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=324035309"
end)

1 answer

✓ Accepted answer

Use LoadAnimation()

Note: put the new animation inside this script and call it "Animation". Code:

game.Players.PlayerAdded:connect(function(plr)
	repeat wait() until plr and plr.Character --better than a wait()
	plr.Character.Humanoid:LoadAnimation(script.Animation)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.