public static void DecoupleFromAll(Part p) { if (p.parent) { p.decouple(); } if (p.children.Count != 0) { KAS_Shared.DecoupleAllChilds(p); } }