Attach actor with physics

I know that if you turn on physics, actor loses all of its parents and it detaches, but I still need it to be attached AND physics of the attached actor MUST work.
All I need is to be able to attach a weapon to my character and weapon must use physics. What are my options to do that?
I’m making a 2D game. I tried constraint and sockets. Both didn’t work when I attached an actor (Weapon) to my character blueprint with a physics turned on.