Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local partt = {}
- local T = Instance.new("Tool")
- local H = Instance.new("Part",T)
- local Ham = Instance.new("Part",H)
- Ham.Name = "Ham"
- Ham.Size = Vector3.new(1,0.8,1.25)
- H.Name = "Handle"
- H.Size = Vector3.new(0.5,3,0.5)
- Weld4 = Instance.new("Weld")
- Weld4.Parent = H
- Weld4.Part0 = H
- Weld4.Part1 = Ham
- Weld4.part1 = Ham
- Weld4.C1 = CFrame.new(0,-1.5,0)
- T.GripPos = Vector3.new(0,-0.75,0)
- local OK = true
- toolout = false
- T.Equipped:Connect(function()
- toolout = true
- task.wait()
- end)
- T.Unequipped:Connect(function()
- toolout = false
- end)
- ammount = 0
- Ham.CanCollide = false
- H.CanCollide = false
- active = false
- Ham.BottomSurface = Enum.SurfaceType.Smooth
- Ham.BrickColor = BrickColor.new("Black")
- Ham.TopSurface = Enum.SurfaceType.Smooth
- Ham.brickColor = BrickColor.new("Black")
- H.BottomSurface = Enum.SurfaceType.Smooth
- H.BrickColor = BrickColor.new("Dark orange")
- H.TopSurface = Enum.SurfaceType.Smooth
- H.brickColor = BrickColor.new("Dark orange")
- local Hit = Instance.new("Sound", Ham)
- Hit.SoundId = "rbxassetid://6357647385"
- Hit.Volume = 1
- T.Activated:Connect(function()
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = T
- active = true
- wait(1.25)
- active = false
- end)
- coroutine.wrap(function()
- while true do
- task.wait()
- if toolout then
- for i, hit in pairs(workspace:GetPartsInPart(Ham)) do
- pcall(function()
- if hit:FindFirstChildOfClass("SpecialMesh") then
- hit:FindFirstChildOfClass("SpecialMesh"):Destroy()
- end
- for i = 1, 4 do
- random1 = math.random(-360,360)
- random2 = math.random(-360,360)
- random3 = math.random(-360,360)
- local E = Instance.new("Part", script)
- E.Size = Vector3.new(2.25,2.25,2.25)
- E.CanCollide = false
- E.CanTouch = false
- E.Transparency = 1
- E.Anchored = true
- E.Name = "The"
- table.insert(partt,E)
- wait(0.1)
- E.CFrame = H.CFrame * CFrame.Angles(random1,random2,random3)
- E.CanCollide = false
- if i == 4 then
- if hit.Name ~= "Base" then
- if hit.Name ~= "The" then
- if hit.Name ~= "Ham" then
- if hit.Name ~= "Handle" then
- if OK then
- OK = false
- local whoops = true
- delay(0.25,function()
- if not whoops then
- OK = true
- end
- end)
- local U = hit:SubtractAsync(partt)
- local O = hit.Parent
- hit.Parent = nil
- U.Parent = O
- OK = true
- whoops = false
- Hit:Play()
- partt = {}
- end
- end
- end
- end
- end
- end
- end
- end)
- end
- end
- end
- end)()
- T.Parent = owner.Backpack
- while true do
- task.wait()
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v.Name == "The" and v:IsA("BasePart") then
- wait(0.125)
- v:Destroy()
- end
- end
- end
Add Comment
Please, Sign In to add comment