How to get sphere trace to attach to weapon?

I want a trace that follows the sweeping motion of the weapon my character is holding, but the only tutorials I’ve been able to find are ones that use a sphere trace attached to the character itself. Is there some way to attach the trace to the weapon mesh? Alternatively, is there a trace that has a more conical shape that I could use instead?

Just add a cone that isn’t visible in game?