I want to reset my object to its original position.

Hey guys,

I’m creating a game where I want a car to pass by over and over again. I know how to let the object move but I don’t know how to reset it so it starts again at its starting point.
I’m trying it like this but nothing happens, tried to find the right answer but there’s none.
I’m a noob in C#, do you also have tips to help me getting better at C#

public class Rewspawn : MonoBehaviour
{

void Start()
{
    
}

void OnTriggerEnter(Collider other)
{
    Vector3 orginalPosition = gameObject.transform.position;
    if(other.gameObject.tag == "End")
    {
        gameObject.transform.position = orginalPosition;
    }
  
}

}

Store the original position in the Start or Awake function:

Vector3 originalPos;

void Start()
 {
     originalPos = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y, gameObject.transform.position.z);
//alternatively, just: originalPos = gameObject.transform.position;

 }
 void OnTriggerEnter(Collider other)
 {
     if(other.gameObject.tag == "End")
     {
         gameObject.transform.position = originalPos;
     }
   
 }

Brilliant!