Prevent line trace from hitting capsule

I don’t know what kind of line trace you’re doing, but there are some things you could try:

LineTraceByChannel set to visibility should be excluding the capsule by default, since it’s not a visible component.
Ignore self should exclude all the components of the player character as well.
But maybe you’re not running the script in the player character BP…

There are further details needed to pin point the problem.