Raycast to RaicastAll help

sorry for my bad english but I’d need a favor :
how do I change this script Raycast to raycatoAll?
I want an int variable that controls Raycast hit 2 walls and then stop. thanks in advance

var decalHitWall : GameObject;
var floatInFrontOfWall : float = 0.00001;
var fumo : GameObject;
var MuzzleFlash : GameObject;;

function Update () 
{
    var holdMuzzleFlash : GameObject;

	var hit : RaycastHit;
           if(Physics.Raycast(transform.position, transform.forward, hit, 5000)){
			Instantiate(decalHitWall, hit.point + (hit.normal * floatInFrontOfWall), Quaternion.LookRotation(hit.normal));
			Instantiate(fumo, hit.point + (hit.normal * floatInFrontOfWall), Quaternion.LookRotation(hit.normal));
			Instantiate(MuzzleFlash, hit.point + (hit.normal * floatInFrontOfWall), Quaternion.LookRotation(hit.normal));
	}
	Destroy(gameObject);
}

Instantiate on all walls:

function Update () 
{
    var holdMuzzleFlash : GameObject;
 
    var hits : RaycastHit[];
    hits = Physics.RaycastAll(transform.position, transform.forward, 5000);
   
   for (var i = 0; i < hits.Length; i++)
   {
     Instantiate(decalHitWall, hits<em>.point + (hits_.normal * floatInFrontOfWall), Quaternion.LookRotation(hits*.normal));*_</em>

Instantiate(fumo, hits.point + (hits_.normal * floatInFrontOfWall), Quaternion.LookRotation(hits*.normal));
Instantiate(MuzzleFlash, hits.point + (hits.normal * floatInFrontOfWall), Quaternion.LookRotation(hits.normal));
}*

Destroy(gameObject);_

}

don’t work:( i whont che bullet trapass the woll and instantiate the wolldecalhit on the wol next to the first woll.
sorry for my orrible english