Camera clipping breaks my line trace RESOLVED

I got it working with this code! Is this good practise?