Hat Removing with Animation [ASK]

I saw many guides about Hat Removing system, but is there any reference how to make it more advanced like using animation to take away / put away the hat? Thank you.

The hat wouldn’t be an accessory for that to happen, instead it should be a mesh connected to the head.

Ah but mine’s a model consists of several parts etc

that can work too, just move the whole model (weld the parts) along with the hand

So i think i need to weld the model to right arm/left arm first then when the animation finished i weld that to my character’s head? Do you think is a good idea?

Weld all of the parts of the hat to one part, then use a motor6D from the main part of the hat to the head. You can animate the hat and remove it in an animation.