I can't disable the Character Script to prevent him from moving when Dead but it doesn't Work /Note PlayerMovement is Another Script

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

public class PlayerStats : CharacterStats
{   public int Health = 100;
    Animator anim;
    public GameObject player;
    PLayerMovement movScript;  //the script that i want to disable

void Start()
{

        health = 100;
        maxHealth = 100;

        mana = 100;
        maxMana = 100;

        stamina = 100;
        maxStamina = 100;

        damage = 25;

        attackSpeed = 1f;
    }


   void Update()
    {
        anim = GetComponent<Animator>();
        GameObject player = GetComponent<GameObject>();
        movScript = GetComponent<PLayerMovement>(); //refrence to the script
    }



    public override void Die() //the function when dead
    {
        if (health <= 0)
        {
            Debug.Log("Player Dead");
            
            anim.SetBool("isdead", true);
            
            movScript.enabled = false;  //the disabling doesn't work here
            Destroy(player, 4f);

        }

    }
}

What does the player can do? Is every player action inside PlayerMovement script?
You could add a boolean to the PlayerMovement script and when you call Die() it makes this bool true, then you add an if statement in your PlayerMovement script checking for that bool.

It would be something like this:

{
    (...)
    
    public bool isDead = false;

   //(...) other functions unaltered (..)

    public override void Die() //the function when dead
     {
         if (health <= 0)
         {
             Debug.Log("Player Dead");
             
             anim.SetBool("isdead", true);

             isDead = true; 

             Destroy(player, 4f);
 
         }
 
     }
    //Inside PlayerMovement script:
    PlayerStats pStats;

    void Start() {
        pStats = GetComponent<PlayerStats>();
    }

    void MovePlayerFunction() {
        if (pStats.isDead == false) //Player will only be able to do stuff if isDead is false.
        {
            //Player actions
            
        }

    }
}