Using Trace to detect if my character is visable

Hey guys, running into a weird problem with Traces. I’m trying to have a turret use Sphere Trace for Objects to see if it can see my character and then shoot at him only when he’s visible. It works for the most part except it will still see you anywhere within it’s range even if you’re behind a wall.

This is how I currently have it working;

Any ideas? I’m using Paper2d btw.

Here is my current also failing method;

EDIT: Ugh it was a dumb mistake, got it figured out! My line trace was starting from inside a wall… haha oh dear.