Make an object move when clicking a GUI button?

How do I make an object move when I click a GUI button? I want it to move to the left when I click it.

A fairly simple example here :slight_smile:

Moves the object/s in increments of 10. (Or whatever you decide)

Or this may work (just moving a selected Object)

var objectToMove : Transform;

function OnGUI (){

    if(GUI.Button(Rect(110, 155, 300, 100),"MOVELEFT")){  
       objectToMove.position += Vector3.left* 10.0;

}

}