When my "Player" teleport it goes back to his last position

Dear Community,

I have been trying to make a teleport Pad(with a trigger) since 2 weeks. What i want to make is : When the player is near to the cube and he presses E, he will be teleported to a new location. But the problem is : when he teleports it goes back to it’s last clicked position. SO the question is how do i fix this type of bug, because i am really unfamiliar with this type of bugs.

Here is my Teleport Script:

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

public class Teleport : MonoBehaviour {

    public GameObject ui;
    public GameObject objToTP;
    public Transform tpLoc;
    void Start()
    {
        ui.SetActive(false);
    }

    void OnTriggerStay(Collider other)
    {
        ui.SetActive(true);
        if ((other.gameObject.tag == "Player") && Input.GetKeyDown(KeyCode.E))
        {
            objToTP.transform.position = tpLoc.position;
 
        }
    }
    void OnTriggerExit()
    {
        ui.SetActive(false);
    }
}

and this is how my inspector looks like(the GameObject that i have my teleport script):


i also have an empty child into the Teleporter.
Thanks for your time.

Make sure that “Auto Sync Transforms” in the Physics section of Project Settings (which can be accessed from Edit) is enabled. If this is not enabled, you’ll find that when your character gets to the Teleport Pad, you’ll be able to see the Teleport Target for a split second but your character will not change position.

source: YT How to Teleport Objects in Unity 5 - YouTube a comment

hi;
every thing seems fine i think ;
can u show me those objects in the hierachy;