Parenting tutorial

Is there any tutorial about scripting child itens? I tried to do it using the reference but I just can’t get it done.

I have a kinda of elevator, but when the elevator moves the character drops. So I saw somewhere that it could be fixed with a script that makes the character be the child of the elevator when it collides.


Here is a good example.