How do I take the coordinates from a raycast and then take those coodinates and make my gun rotate towards it so it can fire a projectile

I have a projectile gun that I want to fire towards my curser. I have my emitter script for my gun and a raycast script for my gun aswell. How do I take the collision location and apply it to my emitter script?

Here are the two scripts:
Emitter: using UnityEngine;using System.Collections;public class Press_Space_to_Fir - Pastebin.com
Raycast: using UnityEngine;public class RayCast : MonoBehaviour{ public floa - Pastebin.com

You can try a transform.LookAt(hit.point).