Socket doesnt follow animation

I am trying to have my player pick up weapons by using a socket created in the engine. Whenever I pick up my weapon
the actor (using attachtocomponent()) doesnt follow the animations its currently in. Even if I move the weapon to the desired pose, its actually fixed there. It doesnt move with the character or anything. I’ve equipped weapons on my players before using this method but for some reason this build is having a problem. Please help me resolve my issue.

Edit: im using 4.25