my player hits the death floor then wont move this is 2D

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

public class deathcode : MonoBehaviour
{
   

    void OnCollisionEnter2D(Collision2D col)
    {

        if(col.transform.CompareTag("player"))
        {
            SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
        }
    }

}

issue - YouTube this is a video of what happens in unity (please ignore the 0 on the play area I’m still making the script for the score and haven’t set it to the text yet)