Laser sight for my FPS gun

So I’m trying to change my crosshair to a laser sight (or general Laser), I’ve done the line renderer stuff but now I want a Laser dot (A point light) at the hit point of the line renderer everything is working fine but the Laser dot(or the Point light) is not working well.
here is a gameplay video of the problem :

here is the code :

private LineRenderer linerenderer;
    public Transform dot;

    void Start()
    {
        linerenderer = GetComponent<LineRenderer>();
    }

   
    void Update()
    {
        RaycastHit hit;
        if(Physics.Raycast(transform.position, transform.forward, out hit))
        {
            if (hit.collider)
            {
                linerenderer.SetPosition(1, new Vector3(0,0,hit.distance));
                Vector3 dotPos = hit.point;
                dot.position = dotPos;
            }
        }
        else
        {
            linerenderer.SetPosition(1, new Vector3(0, 0, 1000));
            dot.position = Vector3.zero;
        }
    }

Any help would be great, THANK YOU!

This is just the basic two-lines convergence problem. As long as your barrel is NOT collinear with your line of sight, this problem can only be hacked around. Look on google for third person aim point or first person aim point, there’s a lot of different approaches, each with benefits and tradeoffs.

imma bit new to Unity so a bit of explanation will be helpful. and also Thank you for the response