"Best" way to handle animation changes?

Hello. What is the best way to handle changes in animations like walk, jump and idle? Like when player equips X weapon, their idle animation needs to change. Or when they toggle running, their walk animation will change. Is changing the animationId a good practice?

You ideally should preload all animations and reuse them.
If your system refers to cached animation then yeah it should be fine
Just make sure to localize value upon grabbing from dictionary.

1 Like

it really all comes down to preference on how u want ur animations to be handled. i personally use an “animation controller” module to make sure that all the animations r loaded and r being played properly.

Changing Animation.AnimationId can cause animations replication issues (roblox’s issue), instead create new Animation Instance with your new id.
Also i recommend you to use my module BetterAnimate for this.