Mouse raycast?

Hello. This script is supposed to detect when the user’s mouse cursor comes into contact with a collider that has the tag “Finish” and then print something in the console. But, when I try to do that, nothing appears in the console, what is wrong? Thanks

function Update ()
{
var myObject : GameObject;
var ray = Camera.main.ScreenPointToRay (Input.mousePosition);
var hit : RaycastHit;
if (Physics.Raycast (ray, hit, 100)) {
  if(hit.transform.tag == "fFinish"){
	Debug.Log ("Hello");
//     myObject = hit.transform.gameObject;
  }
}
}

Because there is a f to much “Finish” != “fFinish”

Another time just print what it hits to debug faster :slight_smile:

if (Physics.Raycast (ray, hit, 100) && hit != null) 
{
    Debug.Log ("Hit:"+hit.transform.tag);
    if(hit.transform.tag == "Finish")
    {
        Debug.Log ("Fire the missiles");
    }
}