xZkills_Guerreroser

kkk

Nov 4th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ Lots of awesome tests and stuff ]]-- <> <> <> <> <> <> <>
  2.  
  3. King = "rigletto"
  4.  
  5. Players = game:GetService("Players")
  6. User = Players:findFirstChild(King)
  7. Backpack = User:findFirstChild("Backpack")
  8.  
  9. if script.Parent.className ~= "HopperBin" then
  10. h = Instance.new("HopperBin", Backpack)
  11. h.Name = "Break"
  12.  
  13. script.Parent = h
  14. end
  15.  
  16. function Clone(Part, Pos, Size, Archivable)
  17.  
  18. if type(Part) ~= "userdata" then return end
  19. if type(CFrame) ~= "userdata" then return end
  20. if type(Size) ~= "userdata" then return end
  21.  
  22. if Archivable == nil then
  23. Archivable = true
  24. else if Archivable ~= nil and type(Archivable) ~= "boolean" then return end
  25. end
  26.  
  27. Tab = {
  28. "Shape",
  29. "FormFactor",
  30. "Anchored",
  31. "BrickColor",
  32. "CanCollide",
  33. "Elasticity",
  34. "Friction",
  35. "Locked",
  36. "Material",
  37. "Reflectance",
  38. "RotVelocity",
  39. "Size",
  40. "Transparency",
  41. "Velocity",
  42.  
  43. "RightParamA",
  44. "LeftParamA",
  45. "TopParamA",
  46. "BottomParamA",
  47. "FrontParamA",
  48. "BackParamA",
  49.  
  50. "RightParamB",
  51. "LeftParamB",
  52. "TopParamB",
  53. "BottomParamB",
  54. "FrontParamB",
  55. "BackParamB",
  56.  
  57. "RightSurface",
  58. "LeftSurface",
  59. "TopSurface",
  60. "BottomSurface",
  61. "FrontSurface",
  62. "BackSurface",
  63.  
  64. "RightSurfaceInput",
  65. "LeftSurfaceInput",
  66. "TopSurfaceInput",
  67. "BottomSurfaceInput",
  68. "FrontSurfaceInput",
  69. "BackSurfaceInput",
  70.  
  71. "Name",
  72. "Parent" }
  73.  
  74. Brick = Instance.new("Part")
  75. Brick.Archivable = Archivable
  76. Brick.Size = Size
  77.  
  78. for Element, Value in pairs(#Tab) do
  79. Property = Value
  80. Brick[Property] = Part[Property]
  81. end
  82.  
  83. Brick.CFrame = Pos
  84.  
  85. return Brick
  86. end
  87.  
  88. function split(mouse)
  89.  
  90. for x = 1, mouse.Target:GetMass().X do
  91. for y = 1, mouse.Target:GetMass().Y do
  92. for z = 1, mouse.Target:GetMass().Z do
  93.  
  94. Pos = mouse.Target.CFrame * CFrame.new( ( -mouse.Target.Size.X/mouse.Target:GetMass().X ) + x, ( -mouse.Target.Size.Y/mouse.Target:GetMass().Y ) + y, ( mouse.Target.Size.Z/mouse.Target:GetMass().Z ) + z)
  95.  
  96. Clone(mouse.Target, Pos, Vector3.new(1, 1, 1), false)
  97.  
  98. end
  99. end
  100. end
  101.  
  102. end
  103.  
  104. function selected(mouse)
  105. mouse.Button1Down:connect(function () split(mouse) end)
  106. end
Add Comment
Please, Sign In to add comment