HI i am i making a pause menu for my game and i can't get the ball to stop moving how would i do this. Here is the code.

#pragma strict

var pauseCanvas : Canvas;

function Start ()
{
pauseCanvas.enabled = false;
}

function pauseButton ()
{
pauseCanvas.enabled = true;
(gameObject.Find(“Player”).GetComponent.enabled = false;
}

function ResumeGame ()
{
pauseCanvas.enabled = false;
}

function ResartLevel ()
{
Application.LoadLevel(Application.loadedLevel);
}

function MainMenu ()
{
Application.LoadLevel(“Main_Menu”);
}

function Exit ()
{
Application.Quit ();
}

Call “Time.timeScale = 0.0F;” when your paused, and “Time.timeScale = 1.0F;” when you unpause.