How do i add physics to a weapon?

I am looking to make a simple weapon. It has a handle and a chain at the end.
I want the chain to have physics so as the chain moves while the weapon is in the characters hand, how would i go about this? Thanks!

You need to do something like this, rig your chain mesh, set up it in UE4, and then attach it to your gun in player character BP.

You need to make the weapon a skeletal mesh and then you either dynamically simulate the chain part or you use AnymDynamics.