Finding the origin of child's parent

Is there some way I can find the root parent(if a child has multiple parents) of an object that is parented to, say a bone? It would be much more simple for me to place this “root” in a variable and reference it than have to write specific 'transform.parent.parent.parent’etc.

“Multiple parents” is not possible. I guess you mean when the child is quite deep nested.

The Transform class has a shortcut for this:

transform.root

root-documentation