Line traces sometimes don't hit even though it shows they hit something

Hello. I am currently trying to work on a third person shooter. While right now I can have the rifle trace at the center of the screen just fine, when I try to add an offset to the weapon, sometimes traces dont hit anything even though it shows it.


Here’s the code during the actual weapon trace, and not the center of the screen trace.
I’ve also noticed this bug only appears to occur if the weapon was more towards the x axis. Can someone tell me what is going on? I’m still getting used to vector math but I can’t seem to understand what is going on.

Any help would be appreciated.