2D teleporter not working

Not sure exactly what is going wrong with my teleporters. I have a sprite with a polygon collider, however when my player collides with it nothing happens.

here is my script

using UnityEngine;
using System.Collections;

public class TeleLtoR : MonoBehaviour {
	
	void OnTriggerEnter(Collider other){

		Vector3 pos = other.gameObject.transform.position;
		pos.x = 8;
		other.gameObject.transform.position = pos;
	}
}

this is one script that would teleport the player from the collider position to another position with the same Y value.

Any help would be appreciated, thanks.

void OnTriggerEnter2D(Collider2D other){

     Vector3 pos = other.gameObject.transform.position;
     pos.x = 8;
     other.gameObject.transform.position = pos;
 }

}