Hey i cant make my weapon stay with my player on movement

Hey guys i have followed this tutorial and with the code i have every time i move the weapon gets left behind on its attack animation please help! (basically i hit the swing button and it does its animation in place as i move then flies back into position on Screen)