How To Change Player As Soon as He Take Powerup

i am making a 2d platformer in which player will have diffrent types of powerups
as soon as he takes power up he will tranform into differnt player can u pls check codeing andwhat i need to add in middle
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CarrotScript : MonoBehaviour
{
    // Start is called before the first frame update
    private void OnTriggerEnter2D(Collider2D collision)
    {
        Destroy(gameObject);
    }
}

use Instantiate after destroying

 public Gameobject player; //player is just a name

private void OnTriggerEnter2D(Collider2D collision)
     {
         Destroy(gameObject);
Instantiate(player,transform.position,transform.rotation); 

     }