Object will not move when I use transform.position

I am trying to teleport a player from one platform to another. But for some reason the player does not move at all. When I print out the position right after I set it in code it is correct but as soon as the next update cycle comes around it is back at the position it was before I tried to teleport. When playing the game the player does not move at all when I am trying to teleport.

void UpdateCurrentLevel()
    {
        this.transform.position = new Vector3(transform.position.x,
                levelManager.UpdateCurrentLevel().position.y + 1,
                transform.position.z);
    }

public Transform UpdateCurrentLevel()
    {
        currentLevel = levels[ChooseLevel()];
        return currentLevel;
    }

Just do

this.transform.position = new Vector3(0, 0, 0);

Replace 0s with your coordinates