Instantiate object as child of scripted objects parent

Is there a way for me to instantiate a object as a child of the scripted objects parent? It would make this much easier for me. Please and thank you

you can try something like this

GameObject go = Instantiate(YourGameObject,transformPosition,Quartanion.identity);

go.transform.parent = YourParentObject;

note that this is a pseudo code. so don’t even try to copy paste it :slight_smile: