help with child and parent

hi can anybody tell me how make a object a child of a other object through script??? please help!!!

Check out the Scripting reference for Transform.parent:

The examples are for the camera, but I expect it would behave the same way with any other game object.

Looks like the code is

// make it a child of the current object
yourGameObjectHere.parent = transform;