Component isn't snapping to socket in other component

I’ve tried to replicate what I’ve done in my project in a new project, but one of the things I’m trying to use has since been removed, and on my project it says it’s depricated. What would I use instead of ‘Attach actor to component (depricated)’, because I can’t find one that will work?