Collision of Character collider not working?

I wrote a script to pickup objects on collision, and subtract from a var.

var stilltofind = 6;
var leveltoload : String;

function OnControllerColliderHit (hit : ControllerColliderHit) {
	if(hit.gameObject.tag == "topickup"){
		Destroy(hit.gameObject);
		stilltofind -= 1;
	}
}

function Update () {
	if(stilltofind == 0){
		Application.LoadLevel(leveltoload);
	}
}

When I play the game, and go to the object, the object doesn’t disappear, and the var isn’t subtracted from.

Can somone troubleshoot?

Check for your others object, their Collider-Component must be a collider, NOT a trigger if you want to use OnCharacterControllerHit function.

Other way, if you must use trigger but not collider on object for some reasons, you must attach Rigibody-component to these objects and write a Script attach to them, using the OnCollisionStay() or OnCollisionEnter() function to destroy themself or do whatever you have to do.

I hope this useful, I see no error in your code. Cheer :)!