TheUnknownDiscord

denied

Jan 9th, 2022 (edited)
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tool = Instance.new("Tool",owner.Backpack)
  2. tool.Name = [["1. Denial"]]
  3. part = Instance.new("Part",tool)
  4. part2 = Instance.new("Part",tool)
  5. part2.Transparency = 1
  6. part.Name = "Handle"
  7. part.Size = Vector3.new(0.91, 0.972, 0.353)
  8. part2.Size = Vector3.new(0.65, 1.25, 0.65)
  9. part2.CanCollide = false
  10. tool.Grip = CFrame.new(0.25,0,0) * CFrame.Angles(0,math.rad(90),math.rad(-90))
  11. local Mesh = Instance.new("SpecialMesh")
  12. Mesh.Parent = part
  13. Mesh.MeshId = "http://www.roblox.com/asset/?id=6059534131"
  14. Mesh.TextureId = "http://www.roblox.com/asset/?id=6059534159"
  15. denied = Instance.new("Sound",part)
  16. denied.SoundId = "http://www.roblox.com/asset/?id=8502862384"
  17. denied.Volume = 1
  18. stamp = Instance.new("Sound",part)
  19. stamp.SoundId = "http://www.roblox.com/asset/?id=521293072"
  20. stamp.Volume = 1
  21. local weld2 = Instance.new("Weld",part)
  22. weld2.Part0 = part2
  23. weld2.Part1 = part
  24. weld2.C0 = CFrame.new(0.536,0,0)
  25. weld = nil
  26. owner = nil
  27. tool.Equipped:Connect(function()
  28. owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
  29. weld = Instance.new("Weld",owner.Character.Torso)
  30. weld.Part0 = owner.Character["Right Arm"]
  31. weld.Part1 = owner.Character.Torso
  32. weld.C0 = CFrame.new(-1.5, 0.5, 0.5) * CFrame.Angles(math.rad(-90),0,0)
  33. end)
  34. tool.Unequipped:Connect(function()
  35. weld:Destroy()
  36. end)
  37. canattack = false
  38. tool.Activated:Connect(function()
  39. if not canattack then
  40. canattack = true
  41. local TweenService = game:GetService("TweenService")
  42. local goal = {}
  43. goal.C0 = CFrame.new(-1.5, 1.25, 0.5) * CFrame.Angles(math.rad(-90),0,0)
  44. local tweenInfo = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, true,0)
  45. local tween = TweenService:Create(weld, tweenInfo, goal)
  46. tween:Play()
  47. wait(.75)
  48. canattack = false
  49. end
  50. end)
  51. part2.Touched:Connect(function(hit)
  52. if hit:FindFirstAncestorOfClass("Model") then
  53. if canattack then
  54. canattack = false
  55. local who = hit:FindFirstAncestorOfClass("Model")
  56. stamp:Play()
  57. stamp.Ended:Wait()
  58. wait(0.25)
  59. denied:Play()
  60. denied.Ended:Wait()
  61. local NOOO = Instance.new("Sound",hit)
  62. NOOO.SoundId = "http://www.roblox.com/asset/?id=4197502822"
  63. NOOO.Volume = 1.5
  64. NOOO.TimePosition = 0.1
  65. NOOO:Play()
  66. wait(0.5)
  67. for i,v in pairs(who:GetDescendants()) do
  68. if v:IsA("BasePart") then
  69. v:Destroy()
  70. end
  71. end
  72. end
  73. end
  74. end)
RAW Paste Data Copied