I want to turn off my player script when it touches an object

So when my player hits my object i want my player’s script to be turned off but when i click retry it should come back on! Please Help me.
this is the objects script

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

public class TRIGGER : MonoBehaviour
{


    public GameObject Level1Restart;

    void OnCollisionEnter(Collision c)

    {
        // Does the other collider have the tag "Player"?
        if (c.gameObject.name == "Player")
        {
            // Yes it does. Destroy the entire gameObject.
            Destroy(c.gameObject);
        }
    }
    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.name == "Player")
        
        {

            Level1Restart.gameObject.SetActive(true);
            

        }
    }
}

,so when my player hits an object i want the player’s script to be turned off but when i click on retry it should come back on.
@Kurt-Dekker

You need to access the script. You should use GetComponent.