Help with shooting script

How do I set up this script to use the right trigger?

#pragma strict

var theBullet : Rigidbody;
var Speed = 20;

function Update () {
	if (Input.GetAxis("Horizontal"))
	{
		var clone = Instantiate(theBullet, transform.position, transform.rotation);
		clone.velocity = transform.TransformDirection(Vector3(0, 0, Speed));
		
		animator.SetFloat ("RifeFire", v);
		
		Destroy (clone.gameObject, 3);
	}
	

 


	
}

you need to change

Input.GetAxis("Horizontal")

to whatever input you have defined for right trigger in the InputManager.

maybe something like

Input.GetButton("Fire1")

does a trigger give a horizontal axis ? as far as i know with controllers they do use fire1 and such. just look in the input manager