InTesting

Woman Torso Union V2

Sep 25th, 2020
1,325
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local ChangeIndex = function(a,b,c)
  2.     for d,e in next,b do
  3.         local _,f = pcall(function()a[d]=e;end)
  4.         if c and f then print(f,'|',a,'|',d,'|',e)end
  5.     end
  6. end
  7. local Create=function(a)
  8.     return function(b)
  9.         local c = Instance.new(a)
  10.         ChangeIndex(c,b,0)
  11.         return c
  12.     end;
  13. end
  14.  
  15. local Union = function(main,parts,isnegated)
  16.     local a = {main,unpack(parts)}
  17.     for _,b in next,a do b.Anchored = true;end
  18.     local c = isnegated and main:SubtractAsync(parts)or main:UnionAsync(parts)
  19.     c.Anchored = true
  20.     for _,b in next,a do b:Destroy()end
  21.     return c
  22. end
  23.  
  24.  
  25. local Data = {
  26.     {{0.787390947, 16.5590286, 35.1524353, 0.999920964, -0.00284123234, -0.0130337626, -0.0133396965, -0.211774305, -0.977227569, 1.60085037e-05, 0.977324069, -0.211795419};{3.97170568, 0.787792206, 3.88501167}};
  27. {{0.764477789, 14.8439732, 34.9106445, 0.999920964, -8.78972933e-05, -0.0133395595, -0.0133396965, -0.00536533864, -0.999896705, 1.60085037e-05, 0.99999547, -0.00536608463};{3.97170568, 0.787792206, 4.90822411}};
  28. {{0.99608165, 16.5560417, 32.8440819, -1.00000989, 6.89458102e-06, -1.45181548e-06, -6.25536813e-08, -0.213135973, -0.977022707, -6.73905015e-06, -0.977032185, 0.213138044};{3.97170568, 0.787792206, 3.88501167}};
  29. {{0.747467279, 13.5682058, 35.0253563, 0.999920964, 0.00292167068, -0.0130159697, -0.0133396965, 0.220191911, -0.9753654, 1.60085037e-05, 0.975461841, 0.220213443};{3.97170568, 0.787792206, 2.58915329}};
  30. {{0.996105671, 13.5651398, 32.9752579, -1.00000989, 6.86850399e-06, 1.57416798e-06, -4.34615686e-08, 0.21887061, -0.975754023, -6.73905015e-06, -0.975763559, -0.218872756};{3.97170568, 0.787792206, 2.58915329}};
  31. {{0.996112347, 15.7571125, 32.77211, -1.00000989, 5.27920201e-06, 4.65335324e-06, -2.43621798e-08, 0.659865022, -0.751384377, -6.7288056e-06, -0.751391649, -0.659871459};{3.97170568, 0.787796021, 1.4436264}};
  32. {{0.996110201, 14.841198, 33.0882645, -1.00000989, 7.04731792e-06, -5.37693268e-09, -5.32413651e-08, -0.00674018636, -0.99997741, -6.73998147e-06, -0.999987245, 0.00674024876};{3.97170568, 0.787792206, 4.90822411}};
  33. {{0.787501872, 16.5646896, 34.5302811, 0.999920964, 0.00880402047, -0.0100220162, -0.0133396965, 0.660838664, -0.750409424, 1.60085037e-05, 0.750483692, 0.660903931};{3.97170568, 0.767932892, 1.60658216}};
  34. {{2.2345891, 15.0373936, 34.8177414, 3.99708688e-06, 0.715534925, -0.698577046, -1, -1.06806851e-06, -6.81575102e-06, -5.62303603e-06, 0.698577046, 0.715534866};{5.84437943, 0.787790298, 4.90793037}};
  35. {{-0.317798615, 14.0373859, 33.242157, 3.91846606e-06, -0.62742269, 0.778678894, -1, 2.19254366e-06, 6.79884624e-06, -5.97303779e-06, -0.778678894, -0.62742269};{5.84437943, 0.787788391, 2.62154198}};
  36. {{-0.432544947, 15.0374002, 33.5075531, 3.9218944e-06, -1.00000513, -0.0030889241, -1, -3.95061261e-06, 5.6381341e-06, -5.65347864e-06, 0.00308923144, -1.00000513};{3.84437943, 0.787790298, 4.74657631}};
  37. {{1.76449168, 14.537384, 34.9153976, 3.96577707e-06, 0.00364763476, -1.00000322, -1, -5.59226009e-06, -3.99755118e-06, -5.6098811e-06, 1.00000322, 0.00364794116};{4.84437943, 0.787790298, 3.39029408}};
  38. {{2.16971779, 15.037405, 33.049778, 4.00219187e-06, 0.834930182, 0.550355852, -1, 6.46626995e-06, -2.53779899e-06, -5.67763482e-06, -0.550355852, 0.834930182};{5.84437943, 0.787790298, 4.20228195}};
  39. {{2.430794, 15.0374069, 34.2979393, 4.00945009e-06, 0.999943197, 0.0115505001, -1, 4.08588176e-06, -5.60410444e-06, -5.65406071e-06, -0.0115508074, 0.999943197};{3.84437943, 0.787790298, 2.96540451}};
  40. {{-1.85588408, 14.0374069, 33.9199562, 3.93514483e-06, -0.701503634, -0.712665856, -1, -6.76744912e-06, 1.13972851e-06, -5.62245395e-06, 0.712665856, -0.701503634};{5.84437943, 1.7877903, 3.49688148}};
  41. {{2.06997228, 16.5067806, 34.0125351, -5.22657274e-06, 0.71524626, 0.698886752, -0.000164573838, 0.698879898, -0.715239167, -1.00000978, -0.000118972275, 0.000113842631};{2.84437943, 0.787788391, 4.36130142}};
  42. {{-0.430174023, 16.152914, 34.149147, 1.17737463e-05, -0.705859721, -0.708365619, 0.00121015206, 0.708358109, -0.705852151, 1.00000918, -0.000848701748, 0.000862752029};{1.84437943, 0.787788391, 3.31886292}};
  43. {{-0.549688041, 14.1844416, 34.2413292, 0.00821527932, -0.655080378, -0.755527616, -0.000742068049, -0.75554949, 0.655091226, -0.999975801, -0.00482090516, -0.00669293012};{1.97170496, 0.40873003, 1.71628189}};
  44. {{2.734514, 14.8287792, 34.2678185, -0.00821530819, 0.937967598, 0.346654147, 0.000741991331, -0.346656621, 0.937991917, 0.999975801, 0.00796281733, 0.0021518236};{3.97170496, 1.78778648, 0.9046942}};
  45. {{-1.22867417, 14.6849823, 34.2353439, 0.00821526628, -0.942508459, -0.334110677, -0.000742049655, -0.334124327, 0.942528725, -0.999975801, -0.00749490922, -0.00344420318};{3.97170496, 2.78778648, 0.9046942}};
  46. {{2.52866578, 14.8835039, 34.2661171, 0.999953866, 0.00667004334, -0.00821530819, -0.00666409358, 0.999977529, 0.000741991331, 0.0082197655, -0.000687208551, 0.999975801};{0.988708735, 2.5518198, 2.0255692}};
  47. {{-1.19151974, 15.1463652, 34.2353401, 0.00821528304, -0.568039417, -0.822972357, -0.000742071017, -0.822995245, 0.568047822, -0.999975801, -0.00405579759, -0.00718240999};{3.97170496, 1.98760307, 1.36326313}};
  48. {{2.79990482, 14.0602808, 34.2689514, -0.00821530819, 0.91409564, -0.405439854, 0.000741991331, 0.405455023, 0.914114714, 0.999975801, 0.00720862206, -0.00400906103};{3.97170496, 1.40873003, 2.05587101}};
  49. {{-0.833032191, 14.0844975, 34.2390747, 0.00821526814, -0.908605754, 0.417597651, -0.000742016768, 0.417601973, 0.908629715, -0.999975801, -0.00777422125, 0.00275638606};{3.97170496, 1.40873003, 2.05587101}};
  50. {{2.55695081, 13.5426598, 34.2673416, -0.00821530819, 0.644943595, 0.764198959, 0.000741991331, -0.764213085, 0.644963503, 0.999975801, 0.00586540252, 0.00579947047};{1.97170496, 1.40873003, 2.45812178}};
  51. {{2.89404416, 15.5325432, 34.268631, -0.00821530819, 0.557010353, 0.830476761, 0.000741991331, -0.830492973, 0.557028532, 0.999975801, 0.0051921946, 0.0064092055};{1.97170496, 0.987603068, 1.36326313}};
  52. {{-0.556598365, 14.6607924, 34.240921, 0.999953866, 0.00667004334, -0.00821530819, -0.00666409358, 0.999977529, 0.000741991331, 0.0082197655, -0.000687208551, 0.999975801};{0.988708973, 3.0383532, 2.0255692}};
  53.  
  54. }
  55. local function WomanTorso()
  56.     local Main = Create'Part'{Parent=workspace;Anchored=true;CFrame=CFrame.new(0.857099533, 14.9999981, 33.999939, 1, -4.4658929e-08, 1.22932158e-06, 4.46589574e-08, 1, -1.21071864e-08, -1.22932158e-06, 1.21072414e-08, 1);Size=Vector3.new(3.44545412, 2.07521582, 1.02867162)}
  57.     local Negates = {}
  58.     for _,a in next,Data do
  59.         table.insert(Negates,Create'Part'{Anchored=true;CFrame=CFrame.new(unpack(a[1]));Size=Vector3.new(
  60.             unpack(a[2]))})
  61.     end
  62.     return Union(Main,Negates,0)
  63. end
  64.  
  65. WomanTorso().Parent = workspace
RAW Paste Data