Line trace horribly off-centre

You need a “Orientation” trace to get center of screen (down range, crosshair) position.

Once you have that you can do the actual “firing” trace using the result impact or trace end vector.

If you’re doing multiplayer you cannot use the characters camera as a reference for Location or forward vector.

Using the linked code, sequence 3 would do the shooting line trace.
World Location = Start
Select Vector = End