Try making an array containing all the equiped pets and another array containing all the owned pets. Then you can just set the pet models parent to nil when unequpping and back to workspace (or wherever) when equipping it. You can probably do this is the PetModule by adding a table for the equipped pets.
P.S. - when creating a new instance you should set it’s parent last. It is explained in this post: