Different Movement Animations For Every Weapon Equipped

How can I play different movement animations for different weapons
I’ve already coded this after a little while but I feel that it is very inefficient and the way i’ve implemented it is very haacky and such because the animations are in a folder based on the weapons name, the script, when the player joins loads every single animation in a Parent Folder “Animations” that has all weapon folder, and their animtions, in there, which obviously can get bad because a max of 225 animatinos can be loaded in the animator.
I also had to write a StateMachine that just uses roblox’s normal humanoid methods that plays specific animations based on, “run”, “jump”, “idle”, “Dash”, etc and everytime a new weapon is equiped, the stateMachine has to go through the “LoadedAnimations” table that the script made in the begining of the player joining, looks for the folder name that matches the weapon, and loads it.

I know i wrote this very inefficient and with millions of typos, but the point is, does anyone know of an efficient, easy to use, oop animation system/engine i guess that can do what i am doing, and do it effiecently and smoothly?