How do I get a ticket's parent ticket in a scrip

How do I get a ticket’s parent ticket in a scrip? What I’m trying to do
is modify one of our On Create scrip conditions to only trigger the
scrip if the new ticket isn’t a child.

Any help will be greatly appreciated,