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;
}
}