How to make an object move when mouse is clicked?

I’m not talking about when the object is clicked on, just when the mouse is clicked while in the game. I got the standard FpsController from importation to act as my player and put some spheres in front of the player to represent fists or hands (Mii style) but I am having a hard time moving them with code as I am an absolute beginner. The code is suppose to move the hand 1 unit on the z axis as a test for punching with the hand, but it is not doing anything atm.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HandMove : MonoBehaviour {

	public GameObject Hand;

	void OnMouseDown (){
		Hand.transform.position = new Vector3 (0, 0, 1);
	}
}

Your code above makes the object Hand move when the object with HandMove script is pressed

you can use this code instead:

public void Update ()
{
	if (Input.GetMouseButtonDown(0))
	{
	// this wont move the object forwards but will reset it's position to 0, 0, 1
		Hand.transform.position = new Vector3 (0f, 0f, 1f);

	// this code will do the trick
	Hand.transform.position += Hand.transform.forward * Time.deltaTime * 5f; // can be any float number
	}
}