How to change the shooter game projectile launcher to shoot a raycast?

Hello all!
I was wondering how I might change the projectile launcher in the Shooter Game example to fire a raycast, and how I would set it up with the player health and such. Is there a certain script in the raycast weapon that I can copy and paste into it or…?