Need help scripting

I have this script thati need help with. Someone gave me it and i want to change it. How would i change it so when i click the left and right arrow keys i want my character to slide instead of rotate.

var speed= 6.0;
var rotateSpeed = 3.0;
var runningSpeed= 10.0;
private var walking = true;
private var running = false;
function Update ()
{
    var hit : RaycastHit;

    var controller : CharacterController = GetComponent(CharacterController);
    transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
    var forward = transform.TransformDirection(Vector3.forward);
    var curSpeed = speed * Input.GetAxis ("Vertical");
    controller.SimpleMove(forward * curSpeed);
}

change transform.Rotate to transform.Translate. Something like this:

var strafeSpeed = 0.1;
transform.Translate(Vector3.left * (Input.GetAxis ("Horizontal") * strafeSpeed));