Reset the ball in the bowling game

Hello!

I’m creating the bowling game. I have a problem. After skittles was shot down, the ball return to the starting position. If i push space button a ball does not move. It looks like subject without physics. How to reset the ball?

function Start() {
    _startPosition = transform.position;
    _startRotation = transform.rotation;
}
function Update() {
	if(Input.GetKey(KeyCode.Space)){
		if(flag == true) {
			if(currentForce >= 70) {
				currentForce += 0.5;
			}
			if(currentForce > 120) {
				currentForce = 70;
			}
		}
	}
	if(Input.GetKeyUp(KeyCode.Space)) {
		if(flag == true) {
			audio.PlayOneShot(myClip);
			myTransform.constantForce.force = transform.TransformDirection(Vector3.forward * currentForce);
			flag = false;
		}
	}
	if(viewAI.flag3 == true) { //viewAI another script, does not matter..
		Reset();
		flag = true;
	}
}
function Reset() {
	transform.position = _startPosition;
	transform.rotation = _startRotation;
}

If you want a rigidbody to reset properly, you also need to set

rigidbody.velocity = Vector3.zero;

Otherwise, you are doing your ball physics in a very strange way. Why does your bowling ball have a jet on it?

Make the ball into a prefab by right clicking in the Project view,
create->prefab
name it BowlingBall
drag the ball from the heirarchy view into the BowlingBall prefab
instantiate the prefab in a script
file:///C:/Program%20Files%20(x86)/Unity/Editor/Data/Documentation/Documentation/ScriptReference/Object.Instantiate.html

to reset the ball, just destroy it and instantiate the prefab again

Hey Guys, thank you!

Managed to run a ball with the help of the Instantiate prefab.

Resetting a bowling ball is an important task in the game of tenpin bowling. go bowling alley