How do I make collision hitboxes that move with my mesh when it is animated?

I’m assuming that I have to rig them to a socket but I’m not sure whether I should be trying to do this in the character class blueprint or the animation event graph and how exactly I go about doing it.