My problem is: When i click(that’s when this runs) the object doesn’t only go up, which it should, it also goes a little right. What can it be?
can = 1;
transform.Rotate(0,0,3);
yield WaitForSeconds(0.000001);
transform.Rotate(0,0,3);
yield WaitForSeconds(0.000001);
transform.Rotate(0,0,3);
yield WaitForSeconds(0.000001);
transform.Rotate(0,0,3);
yield WaitForSeconds(0.000001);
transform.Rotate(0,0,3);
yield WaitForSeconds(0.000001);
transform.Rotate(0,0,3);
yield WaitForSeconds(0.1);
transform.Rotate(0,0,-3);
yield WaitForSeconds(0.0001);
transform.Rotate(0,0,-3);
yield WaitForSeconds(0.0001);
transform.Rotate(0,0,-3);
yield WaitForSeconds(0.0001);
transform.Rotate(0,0,-3);
yield WaitForSeconds(0.0001);
transform.Rotate(0,0,-3);
yield WaitForSeconds(0.0001);
transform.Rotate(0,0,-3);
can = 0;