Instantiating an object as a child of another game object

How can I instantiate an object and make it a child of another game object?

Right now the instantiate command puts the new object in the main scene hierarchy.

child.transform.parent = parentIWant.transform;

it worked. But it didn’t solve what I was looking for exactly.

I have a table with a plate on it. Both of them are rigidbodies, what I want is that when I move the table itself the plate will move with it and will not fall. In 3DS Max if you move the parent the child stays relative to the parent.

I know this is a result of the physics engine but is there a way around it?

If the plate is a rigidbody, it’s going to move.
You can set it to isKinematic, and it won’t listen to physics, but then you’ll have a magically stuck plate.
You could also try setting different physics materials to the plate table, and try to find a combination that makes the plate behave more realistically.