Why are these scripts not working?

Hi! So I am making an FPS and I am watching a “Make an FPS” tutorial by Jimmy Vegas on YouTube. I wrote the script for a Raycast and an Enemy damage. When I am on monodev, and I right-click then press “run to cursor” (that is how I debug the script) the debug comes out clean. When I try to attach the scripts to theire places (enemy on a cube, raycast script on my gun), they say they are incorrect. Please help!

Here are the scripts:

97585-dwm-2017-07-11-19-56-08-92.png

I think the fault is in your Raycast Funciton. see the out function.:

if (Physics.Raycast (position, direction, out shot)) {...}