What’s the problem??
Error at: clone.rigidbody.AddRelativeForce(new Vector3(0f,-5f,0f));
if ((Time.time>nextInst)
{
position = new Vector3(x, 20, z);
nextInst = Time.time+delay;
if((Input.GetMouseButton(0)) )
{
clone = Instantiate(prefab,position,transform.rotation) as Rigidbody ;
if(clone.GetComponent("rigidbody") == true)
{
print("Rigidbody");
}
clone.rigidbody.AddRelativeForce(new Vector3(0f,-5f,0f));
}
}