TheUnknownDiscord

teardown

Sep 14th, 2021 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local partt = {}
  2. local T = Instance.new("Tool")
  3. local H = Instance.new("Part",T)
  4. local Ham = Instance.new("Part",H)
  5. Ham.Name = "Ham"
  6. Ham.Size = Vector3.new(1,0.8,1.25)
  7. H.Name = "Handle"
  8. H.Size = Vector3.new(0.5,3,0.5)
  9. Weld4 = Instance.new("Weld")
  10. Weld4.Parent = H
  11. Weld4.Part0 = H
  12. Weld4.Part1 = Ham
  13. Weld4.part1 = Ham
  14. Weld4.C1 = CFrame.new(0,-1.5,0)
  15. T.GripPos = Vector3.new(0,-0.75,0)
  16. local OK = true
  17. toolout = false
  18. T.Equipped:Connect(function()
  19. toolout = true
  20. task.wait()
  21. end)
  22. T.Unequipped:Connect(function()
  23. toolout = false
  24. end)
  25. ammount = 0
  26. Ham.CanCollide = false
  27. H.CanCollide = false
  28. active = false
  29. Ham.BottomSurface = Enum.SurfaceType.Smooth
  30. Ham.BrickColor = BrickColor.new("Black")
  31. Ham.TopSurface = Enum.SurfaceType.Smooth
  32. Ham.brickColor = BrickColor.new("Black")
  33. H.BottomSurface = Enum.SurfaceType.Smooth
  34. H.BrickColor = BrickColor.new("Dark orange")
  35. H.TopSurface = Enum.SurfaceType.Smooth
  36. H.brickColor = BrickColor.new("Dark orange")
  37. local Hit = Instance.new("Sound", Ham)
  38. Hit.SoundId = "rbxassetid://6357647385"
  39. Hit.Volume = 1
  40. T.Activated:Connect(function()
  41. local Anim = Instance.new("StringValue")
  42. Anim.Name = "toolanim"
  43. Anim.Value = "Slash"
  44. Anim.Parent = T
  45. active = true
  46. wait(1.25)
  47. active = false
  48. end)
  49. coroutine.wrap(function()
  50. while true do
  51. task.wait()
  52. if toolout then
  53. for i, hit in pairs(workspace:GetPartsInPart(Ham)) do
  54. pcall(function()
  55. if hit:FindFirstChildOfClass("SpecialMesh") then
  56. hit:FindFirstChildOfClass("SpecialMesh"):Destroy()
  57. end
  58. for i = 1, 4 do
  59. random1 = math.random(-360,360)
  60. random2 = math.random(-360,360)
  61. random3 = math.random(-360,360)
  62. local E = Instance.new("Part", script)
  63. E.Size = Vector3.new(2.25,2.25,2.25)
  64. E.CanCollide = false
  65. E.CanTouch = false
  66. E.Transparency = 1
  67. E.Anchored = true
  68. E.Name = "The"
  69. table.insert(partt,E)
  70. wait(0.1)
  71. E.CFrame = H.CFrame * CFrame.Angles(random1,random2,random3)
  72. E.CanCollide = false
  73. if i == 4 then
  74. if hit.Name ~= "Base" then
  75. if hit.Name ~= "The" then
  76. if hit.Name ~= "Ham" then
  77. if hit.Name ~= "Handle" then
  78. if OK then
  79. OK = false
  80. local whoops = true
  81. delay(0.25,function()
  82. if not whoops then
  83. OK = true
  84. end
  85. end)
  86. local U = hit:SubtractAsync(partt)
  87. local O = hit.Parent
  88. hit.Parent = nil
  89. U.Parent = O
  90. OK = true
  91. whoops = false
  92. Hit:Play()
  93. partt = {}
  94. end
  95. end
  96. end
  97. end
  98. end
  99. end
  100. end
  101. end)
  102. end
  103. end
  104. end
  105. end)()
  106. T.Parent = owner.Backpack
  107. while true do
  108. task.wait()
  109. for i,v in pairs(owner.Character:GetDescendants()) do
  110. if v.Name == "The" and v:IsA("BasePart") then
  111. wait(0.125)
  112. v:Destroy()
  113. end
  114. end
  115. end
Add Comment
Please, Sign In to add comment