Mouse clicks not accurate

For whatever reason, I simply can’t get an accurate linetrace to where my mouse is clicking on, I’ve tried both this:

And this;

In either case, the debug linetrace is not even remotely accurate and I can’t figure out why not.

Any input appreciated, been banging my head against a wall.

Thank you