collider triggers transform position

I’m trying have when player enter a box collider and and move to new position

I try to make my own script I got no error but nothing happened, my friend suggested turn off the player movement script (PlayerMovement) or the character controller and after the vector change then back on again but I’m not sure how to right that in

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class push : MonoBehaviour
{
    public GameObject player;

    void OnTriggerEnter(Collider col)
    {
        if (col.gameObject.tag == "Player")
        {
            player.transform.position = new Vector3(58.89f, 1.47f, -1.88f);
        }
    }
}

So, I have a better approach for this, make an Empty GameObject to the area you want it to be in, from there make a variable called “public Transform example;” right above player, and do " player.transform.position = example.transform.position; " Where your original statement was. Another thing I would check is if you assigned the tag “Player” to your player GameObject and add a Debug.Log(“example”); in the collider statement to see if the Player is actually colliding or not.