Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debris = game:GetService("Debris")
- Tool = Instance.new("Tool")
- Tool.Name = "MINE DIAMOOOOOOOONDS"
- Part = Instance.new("Part")
- Part.Name = "Handle"
- Part.Parent = Tool
- Part.Size = Vector3.new(1,5,1)
- Part.Color = Color3.fromRGB(130, 66, 5)
- Part.Massless = true
- Part2 = Instance.new("Part")
- Part2.Parent = Part
- Part2.Size = Vector3.new(1.1,1.1,5)
- Part2.Color = Color3.fromRGB(0, 0, 121)
- Part2.Massless = true
- Part2.CanCollide = false
- Tool.GripPos = Vector3.new(0,-2,0)
- Tool.Parent = owner.Character
- ShootWeld = Instance.new("Weld", Part)
- ShootWeld.Part0 = Part2
- ShootWeld.Part1 = Part
- ShootWeld.C0 = CFrame.new(0,-1.75,0)
- Part.Material = Enum.Material.SmoothPlastic
- Part2.Material = Enum.Material.SmoothPlastic
- local music = Instance.new("Sound", owner.Character.Head)
- music.SoundId = "rbxassetid://693581349"
- music.Volume = 1
- Tool.Equipped:Connect(function()
- music:Resume()
- end)
- Tool.Unequipped:Connect(function()
- music:Pause()
- end)
- TweenService = game:GetService("TweenService")
- spininfo = TweenInfo.new(0.35,Enum.EasingStyle.Linear)
- Spin1 = TweenService:Create(Tool,spininfo,{Grip = CFrame.Angles(math.rad(120),0,0)})
- Spin2 = TweenService:Create(Tool,spininfo,{Grip = CFrame.Angles(math.rad(240),0,0)})
- Spin3 = TweenService:Create(Tool,spininfo,{Grip = CFrame.Angles(math.rad(360),0,0)})
- Tool.Activated:Connect(function()
- Part.Size = Vector3.new(3,15,3)
- Part2.Size = Vector3.new(3.3,3.3,15)
- ShootWeld.C0 = CFrame.new(0,-1.75 * 3,0)
- Tool.GripPos = Vector3.new(0,-2 * 3,0)
- candamage = true
- Spin1:Play()
- wait(0.35)
- Spin2:Play()
- wait(0.35)
- Spin3:Play()
- wait(0.35)
- candamage = false
- Part.Size = Vector3.new(1,5,1)
- Part2.Size = Vector3.new(1.1,1.1,5)
- ShootWeld.C0 = CFrame.new(0,-1.75,0)
- Tool.GripPos = Vector3.new(0,-2,0)
- end)
- Part2.Touched:Connect(function(hit)
- if hit.Name ~= "Base" then
- if hit ~= owner.Character:GetDescendants() then
- if candamage then
- oldcf = hit.CFrame
- oldcolor = hit.Color
- hit:Destroy()
- local mined = Instance.new("Sound", owner.Character.Head)
- mined.SoundId = "rbxassetid://6496157434"
- mined.Volume = 1
- mined:Play()
- debris:AddItem(mined,1)
- for i = 1, 5 do
- partdebris = Instance.new("Part",script)
- partdebris.Shape = Enum.PartType.Ball
- partdebris.Size = Vector3.new(0.5,0.5,0.5)
- partdebris.Color = oldcolor
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = partdebris
- Mesh.MeshType = "Brick"
- Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
- partdebris.CanTouch = false
- partdebris.Material = Enum.Material.SmoothPlastic
- partdebris.CFrame = oldcf * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- debris:AddItem(partdebris,6)
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement