Make a bunch of objects (clones) stick together when they collide.

I just need a script to attach to the object being clones which says that if the clone(s) collide with each other, they dont come apart. If it helps, I am making a game which has building in it and when you click play, I want the objects placed to stay together

(I know this may have been answered but it does not work for me or does not apply for what i am trying to do)
thank you!

One typical way to make gameobjects “stick” together is to simply make one the child of the other. They will share the parent transform and move together.

 child.transform.SetParent(newParent);