Player hiding inside Gameobject

Hey guys, sorry I’ve been searching and trying a whole lot of scripts and going through lot of tutorials for 3 hrs and I can’t seem to find what I need so I hope I can find my answer here. Please help >< and then i’ll try figure out the next move. I didn’t want to destroy the player cause I wanted the camera to follow the player since it’s going to be a scrolling screen game.

I thought the OnTriggerEnter would do the trick, but it doesn’t do anything, maybe i used it wrong T.T
Also i tried Transform.Parent. and it didn’t seem to work either.

Sorry! I didn’t post any question here! thanks for the reminder Fredex8
The question is How do I make my player hide inside an Gameobject like… Rocket, Cannon, or Barrel. The Gameobject is currently moving Up and down, so i wanted my Player to disappear when it collide with the GameObject. What I’m trying to do is having my character jump into a object, the object carry the player up and down, and then Fire the player (with a button pressed) forward with force.

  1. Give your Player GameObject the Tag “Player”.

  2. Go to the GameObject which will be used as “The Invisible Trigger” and set in the Collider component the: is Trigger = on.

  3. Make a Script an add the following Part to it. Give the Invisible Trigger the Script and you´re good to go!

      void OnTriggerEnter(Collider other)

    GameObject.FindGameObjectWithTag(“Player”).GetComponent().enabled = false;