iam using mathf.pingpong, but it usually start position from (0,0,0), even if me change the position in the scene or from the script ! this code in Awake() to change the position randomly but didn’t wok and also start from (0,0,0)
randomRange = Random.Range (1, 10);
transform.position = new Vector3 ((randomRange - 10f) + 10, transform.position.y, 0.0f);
what can me do to solve this ?
and if me want to move this object between negative and positive position, like from (-5, 5) in x , how to make this ?
thank alot :slight_smile:

You probably need it in Update rather than Awake or Start