How to make player reappear on respawn point

Hi im new to Unity and game development, and i wanna ask something about my 2D project
my player keep disappearing on respawn point after falling to death zone,
this is my code

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

public class CheckPoints : MonoBehaviour
{
    public Transform checkpoint;
    GameObject player;
    // Start is called before the first frame update
    void Start()
    {
        player = GameObject.FindWithTag("Player");
    }
      
    // Update is called once per frame
    void OnTriggerEnter2D (Collider2D plyr)
    {
        if (plyr.gameObject.tag == "Player")
        {
            player.transform.position = checkpoint.position;
        
        }
    }
}

Thank you in advance

I asume this is on your dead zone? If you pause the editor after he disappears and look in the hierarchy, is your player still there? If so, where is he? Maybe its just a z order problem?

yup my player still there, also in “Scene” but not in “Game”…

You’re going to have to be more clear regarding what the problem is, because it sounds like all you need to do is set the player’s transform.position back to the respawn point position.

So wherr in Scene is he, behind something else, invisible, falling down,…?