Im only getting a single error and the code is all in, the error is, The type or namespace name 'PlayerHealth' could not be found are you missing a using directive or an assembly reference? Here is a picture of the code http://i.imgur.com/yUDkuNb.png
change Code (csharp): = (PlayerHealth)target.GetComponent("PlayerHealth"); to Code (csharp): = target.GetComponent("PlayerHealth"); See if that helps