Firing a projectile along with raycast?

Right now for my gun I’m using raycast. But I’d like to know, how would I fire a projectile (such as a bullet) with raycast?

You could instantiate a prefab of a bullet with a script attached that has a Vector3 variable, set that Vector3 variable to hit.point, and then make the script attached to the bullet do Vector3.MoveTowards that variable.