Unexpected Error 'rb'

Hello, i have unexpected error all the time, even if i dont use rb shortcut. Help please

using UnityEngine;
using System.Collections;

public class ball : MonoBehaviour {

	public float ballVelocity = 3000;

	Rigidbody rb;
	bool isPlay;
	int randInt;

	void Awake() 
	{
		rb = gameObject.GetComponent<Rigidbody> ();
		randInt = Random.Range (1, 3);
	}

	void Update () 
	{
	    if(Input.GetMouseButton(0) == true && isPlay == false)
		{
			transform.parent = null;
			isPlay = true;
			rb.isKinematic = false;
			if(randInt == 1
			
				rb.AddForce(new Vector3(ballVelocity,ballVelocity,0));
			}
			if(randInt == 2)
			{
				rb.AddForce(new Vector3(-ballVelocity,-ballVelocity,0));
			}
		}
	}
}

if(randInt == 1

is missing a closing ), which is why the “rb” on the following line is unexpected, as the message tells you.

Because you forgot to close your if statement with a bracket:

if(randInt == 1

This should be:

if(randInt == 1)

Note: It is advisable that you post exact error message from Console since it provides people with required information like line number.