Gun Help

So my problem is I don’t quite know how to make my gun shoot out a single beam and keep it held (keep the beam going steady) with just one click and then change it to charging up when you hold the mouse button. Any help here would be great. I know some javascript but I am not really advanced in it.

When player starts shoting, create line renderer and attach to it some fancy material You can animate beam by changing material properties.