Collision not working!!

Hi I’m making a simple script so when my character called ‘Player’ (in hierarchy) collides with a cube, named ‘Cube’ (in hierarchy) , the cube disappears. However, it’s not working. I have looked EVERYWHERE, and found numerous tutorials on these forums, YouTube, and I have even ventured to the second results page on Google (yes I’m that desperate). Yet for some reason it’s not working. What do I need to do , step by step to make this happen from starting up unity from new project, as I am having no hope whatsoever. I have literally tried everything but the correct solution!!

Massive thank you to anyone who can help me!

Thanks!

Edit: I am using the 1st person pre-made character

add collider to cube, make it a trigger
add collider and rigidbody to player
inside player class:

void OnTriggerEnter(Collider collider){
collider.gameObject.SetActive(false);
}