How can I animate with motor 6d?

Heyo,
I’m looking to have it so that if a player is using a weapon in my game it will overwrite all their animations into a unique set that includes the player holding a weapon.

Problem is I would like to animate the player and the weapon itself, I’ve seen this being done with Motor 6d but I am unsure on how I would get it to work, cheers!

just make animation with it.
You can temporally weld model using Motor6D to a player and disable regular Weld (temporally) so roblox’s animation editor will not get mad