HealthPack Script Problem...

It says unknown identifier ‘health’ and cannot convert string blah blah to gameObject in (21, 41)
wrote this code myself (im a begginer)
please help. here’s code:

#pragma strict

var HealthPack : GameObject;
var Healthnum = 10;
var player : GameObject;

function Update () 
{
 var healthScript : Status = GetComponent(Status);
 Health = healthScript.Health;
 if(Healthnum == 0)
 {
  die();
 }
}

function OnTriggerEnter ( hit : Collider )
{
	if(hit.gameObject.tag == "Player")
	{
		player = hit.gameObject.tag;
		AddHealth ();
	}
}

function AddHealth ()
{
 Health += Healthnum;
 Healthnum -= Healthnum;
}

function die ()
{
	Destroy(gameObject);
}

unknown identifier ‘Health’

You are using a variable in that script , but havn’t declared it anywhere =]

var Health : float = 0;

then this is wrong player = hit.gameObject.tag;, you want to store a reference to the GameObject, not the tag :

player = hit.gameObject;