TheUnknownDiscord

Pickaxe

Oct 28th, 2021 (edited)
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local debris = game:GetService("Debris")
  2. Tool = Instance.new("Tool")
  3. Tool.Name = "MINE DIAMOOOOOOOONDS"
  4. Part = Instance.new("Part")
  5. Part.Name = "Handle"
  6. Part.Parent = Tool
  7. Part.Size = Vector3.new(1,5,1)
  8. Part.Color = Color3.fromRGB(130, 66, 5)
  9. Part.Massless = true
  10. Part2 = Instance.new("Part")
  11. Part2.Parent = Part
  12. Part2.Size = Vector3.new(1.1,1.1,5)
  13. Part2.Color = Color3.fromRGB(0, 0, 121)
  14. Part2.Massless = true
  15. Part2.CanCollide = false
  16. Tool.GripPos = Vector3.new(0,-2,0)
  17. Tool.Parent = owner.Character
  18. ShootWeld = Instance.new("Weld", Part)
  19. ShootWeld.Part0 = Part2
  20. ShootWeld.Part1 = Part
  21. ShootWeld.C0 = CFrame.new(0,-1.75,0)
  22. Part.Material = Enum.Material.SmoothPlastic
  23. Part2.Material = Enum.Material.SmoothPlastic
  24. local music = Instance.new("Sound", owner.Character.Head)
  25. music.SoundId = "rbxassetid://693581349"
  26. music.Volume = 1
  27. Tool.Equipped:Connect(function()
  28. music:Resume()
  29. end)
  30. Tool.Unequipped:Connect(function()
  31. music:Pause()
  32. end)
  33. TweenService = game:GetService("TweenService")
  34. spininfo = TweenInfo.new(0.35,Enum.EasingStyle.Linear)
  35. Spin1 = TweenService:Create(Tool,spininfo,{Grip = CFrame.Angles(math.rad(120),0,0)})
  36. Spin2 = TweenService:Create(Tool,spininfo,{Grip = CFrame.Angles(math.rad(240),0,0)})
  37. Spin3 = TweenService:Create(Tool,spininfo,{Grip = CFrame.Angles(math.rad(360),0,0)})
  38. Tool.Activated:Connect(function()
  39. Part.Size = Vector3.new(3,15,3)
  40. Part2.Size = Vector3.new(3.3,3.3,15)
  41. ShootWeld.C0 = CFrame.new(0,-1.75 * 3,0)
  42. Tool.GripPos = Vector3.new(0,-2 * 3,0)
  43. candamage = true
  44. Spin1:Play()
  45. wait(0.35)
  46. Spin2:Play()
  47. wait(0.35)
  48. Spin3:Play()
  49. wait(0.35)
  50. candamage = false
  51. Part.Size = Vector3.new(1,5,1)
  52. Part2.Size = Vector3.new(1.1,1.1,5)
  53. ShootWeld.C0 = CFrame.new(0,-1.75,0)
  54. Tool.GripPos = Vector3.new(0,-2,0)
  55. end)
  56. Part2.Touched:Connect(function(hit)
  57. if hit.Name ~= "Base" then
  58. if hit ~= owner.Character:GetDescendants() then
  59. if candamage then
  60. oldcf = hit.CFrame
  61. oldcolor = hit.Color
  62. hit:Destroy()
  63. local mined = Instance.new("Sound", owner.Character.Head)
  64. mined.SoundId = "rbxassetid://6496157434"
  65. mined.Volume = 1
  66. mined:Play()
  67. debris:AddItem(mined,1)
  68. for i = 1, 5 do
  69. partdebris = Instance.new("Part",script)
  70. partdebris.Shape = Enum.PartType.Ball
  71. partdebris.Size = Vector3.new(0.5,0.5,0.5)
  72. partdebris.Color = oldcolor
  73. Mesh = Instance.new("SpecialMesh")
  74. Mesh.Parent = partdebris
  75. Mesh.MeshType = "Brick"
  76. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  77. partdebris.CanTouch = false
  78. partdebris.Material = Enum.Material.SmoothPlastic
  79. partdebris.CFrame = oldcf * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  80. debris:AddItem(partdebris,6)
  81. end
  82. end
  83. end
  84. end
  85. end)
RAW Paste Data