Disable gun if it is not mine?

I tried using this script here to check if I got the gun and if I did then the scripts are enabled but it doesnt work.

SCRIPT:

function OnTriggerEnter(hit:Collider)
{
	if(hit.gameObject.tag == "Player")
	{
	 	gameObject.Find("BSpawner").GetComponent("Shoot").enabled = true;
	 	gameObject.Find("Muzzle").GetComponent("Shoot").enabled = true;
	}
	else
	{
		gameObject.Find("BSpawner").GetComponent("Shoot").enabled = false;
	 	gameObject.Find("Muzzle").GetComponent("Shoot").enabled = false;
	}
}

Try …

gameObject.Find("BSpawner").GetComponent("Shoot").SetActiveRecursively(true);
gameObject.Find("Muzzle").GetComponent("Shoot").SetActiveRecursively(true);