Trying to make a "spawn" point

Hello, I’m [still] working on a maze game and I want to add something that when the player collides with it, they are moved to a different part of the maze. (I would prefer it to be any where in the maze, but if I have to set a specific point, that’s fine.) But I don’t know a lot of scripting so sorry if I completely botched this. I’ve tried making an empty game object to make it my trigger and then added a small cube (that I will make deactivate once player is moved to that point). So here’s what I got, just the parts pertaining to this…

public GameObject SpawnPoint1; 
	public GameObject SpawnTrigger;

//Of course this is after void OnTriggerEnter (Collider other)
if (other.gameObject.tag == "Respawn") 
		{
			transform.position = x(-12.3) y(3.21) z(-11.10);
		}

I tried to enter “transform.position = SpawnPoint1;”, and a few other variations of this, but it all gives me some kind of error. Thanks in advance for the help.

The proper variation was

transform.position = SpawnPoint1.transform.position;