Why I can't spawn my bullet

I did these in c++



When I shoot it shoots from it’s location where I picked it up. How do i shoot from where I attached it to?