this worked before recent unity update but now it wont any suggestions would be great

i’ve added one of the scripts for consideration

#pragma strict

//@script RequireComponent(Rigidbody)
var playerGameObject;
//var gravity : boolean = false;

 var hit = 0;
var timeToPort			: float			= 2.0;
var tubePortalTo		: Transform;


var spawnPos : Transform;

var Explode : GameObject;

function Start ()
{
	playerGameObject = GameObject.FindWithTag ( "DartBoard" );
}


function OnCollisionEnter(other : Collision)

{
        if(other.collider.tag == "Dart")
        {
           // AddtoScore();
            GetComponent.<Rigidbody>().useGravity = true;
             hit +=1;
            checkhit();
           // yield WaitForSeconds(2);
          //  other.collider.rigidbody.Sleep();
            //Destroy (gameObject);
        }
}
function Reset ()
{
	hit -= 1;
	GetComponent.<Rigidbody>().useGravity = false;
}


function AddtoScore ()
{
	gameObject.Find("DartBoard").SendMessage("F9");
}

function checkhit()
 {
     if(hit == 1)
     {
     	GetComponent.<Collider>().isTrigger = true;
     	GetComponent.<Renderer>().enabled = false;
     	
     	AddtoScore();
     	
     	Instantiate(Explode, spawnPos.position, spawnPos.rotation);
     	yield WaitForSeconds (3);
     	GetComponent.<Collider>().isTrigger = false;
     	gameObject.Find("DartBoard").SendMessage("StopScore");
     	gameObject.Find("ragdoll(Clone)").SendMessage("StopIt"); 
     	
     	//transform.Translate (0, 0.1 * Time.deltaTime, 0);
		//yield WaitForSeconds (2);
		
		Reset();						
		transform.position = tubePortalTo.transform.position;
		yield WaitForSeconds ( 0.5 );
		GetComponent.<Renderer>().enabled = true;        
		// Destroy(gameObject);
     }
 }

Never mind solved it

how did you solve it?