Line trace a sword

I have a sword attached to my character via a socket what would be the best way to do a line trace for it cheers

Not sure exactly what you are asking here. Are you unsure how to do a line trace in unreal or do you mean “How do i detect if it hits something”?

Line traces are simple blueprint nodes, just right click in your blueprint and type Line Trace.