How to use line renderer?

Hello people!
I want to make a sort of laser sight that goes from the player continuously for a top down game so the player knows where he/she is aiming so I thought I’ll use a line render but I add the script and have no idea how to use it I just get a square stuck on top of the player
Any help?

It’s all in the docs. If you just want a fixed-length sight associated with the player, set the position array up accordingly and turn off ‘use world space’. If you want the sight to interact with obstacles, you’ll probably need to perform a raycast and then adjust the line endpoints procedurally in your script (click ‘Switch to Scripting’ in the upper right to see the script interface for the line renderer).