OnTriggerEnter doesn't work

I have this gameobject that is attached to the player and when the gameobject collides with another object in the scene it turn on the bool. I made sure that the object isn’t touching the player and made sure that it has the correct components to work. It seems to be a problem with the script.

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

public class crouchCollisionTest : MonoBehaviour
public bool CantCrouch;

void OnTriggerEnter(Collision collision)
        CantCrouch = true;

    print("can't crouch");

void OnTriggerExit(Collision collision)
 CantCrouch = false;
    print("can crouch");


had to get rid of the stuff in the ()