How do I make a line render always be pointing at the center of the canvas/gui

I’m making a FPS and am trying to make a laser sight that looks like it is coming out of the gun and looks like it is in the center of the screen, so there is a line from the gun to the center

I have solved my problem now by putting my gun mechanics on the barrel of my gun so that the bullet goes where the barrel(and laser sight) is pointing