Attach Object to Skeletal Mesh Socket C++

Thanks for the advice. That was my first attempt in doing this and it didnt work, so I tried solving it with GetSocketByName()