3D game: Pickups don't disappear when player touches them.

So I am making a 3D game where the player has to touch a jaguar to make it disappear. The jaguar is a pickup. I am new to Unity, but now I had some experience with the 2D games and I made two 2D levels. This is my first 3D game. The game would be finished by now, if only I could fix the problem. I did follow the Roll-a-Ball 3d tutorial and here is the code they gave me for colliding with a pickup (jaguar in this case). I’ve used this chunk of code for my 2D levels, but I don’t need to share my entire code:

 void OnTriggerEnter(Collider other)
 {
     if(other.gameObject.tag == "Jaguar")
         other.gameObject.SetActive(false);
     
     
 }

In this game, I do not have problems with the colliders at all. I know for sure they are touching each other. I used Sphere colliders in this game for each jaguar and the player itself. I have the “Is Trigger” on in the jaguars, and the “Is Trigger” off on the player (That’s how it worked in my 2D games). The jaguars have the “Jaguar” tag. But still, nothing is happening when the player’s collider touches the jaguars’ colliders. I do have the Sphere Colliders and Rigidbody on all the jaguars and the player

@rklalbahadur

I am not sure this will help but maybe try removing the Jaguars from the empty game object and then test them to see if it works

For those wondering here is the working script:

Working Script

May seem dumb but it’s gotten me before. Make sure your tag is spelled the same way in code as it is in the inspector. It is case sensitive. Let me know if that helped you out.

Make sure that both your players colliders and your pickups colliders are set to be triggers in the editor.

In the Roll a Ball beginner unity tutorial, the narrator goes over this during the part where he’s setting up the collectibles, maybe you can watch that part and try to make sure everything is set up completely right?

Here’s the link for that video in the tutorial.