Advertisement
TheUnknownDiscord

denied

Jan 9th, 2022 (edited)
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  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. local arm = Instance.new("Weld",owner.Character.Torso)
  26. arm.Part0 = owner.Character["Right Arm"]
  27. arm.Part1 = owner.Character.Torso
  28. arm.C1 = CFrame.new(1.5, 0.5, 0)
  29. arm.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
  30. arm.Enabled = false
  31. owner = nil
  32. canattack = false
  33. tool.Equipped:Connect(function()
  34. owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
  35. arm.Part0 = owner.Character["Right Arm"]
  36. arm.Part1 = owner.Character.Torso
  37. arm.Parent = owner.Character.Torso
  38. arm.C1 = CFrame.new(1.5, 0.5, 0)
  39. arm.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
  40. end)
  41. tool.Unequipped:Connect(function()
  42. canattack = false
  43. end)
  44. local tween = nil
  45. tool.Activated:Connect(function()
  46. if not canattack then
  47. canattack = true
  48. arm.Enabled = true
  49. local TweenService = game:GetService("TweenService")
  50. local goal = {}
  51. goal.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),0,0)
  52. local tweenInfo = TweenInfo.new(0.09375, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
  53. tween = TweenService:Create(arm, tweenInfo, goal)
  54. local goal = {}
  55. goal.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
  56. local tweenInfo2 = TweenInfo.new(0.09375, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  57. local tween2 = TweenService:Create(arm, tweenInfo2, goal)
  58. tween:Play()
  59. tween.Completed:Wait()
  60. tween2:Play()
  61. tween2.Completed:Wait()
  62. arm.Enabled = false
  63. wait(0.125)
  64. canattack = false
  65. end
  66. end)
  67. local registered = {}
  68. part2.Touched:Connect(function(hit)
  69. if hit:FindFirstAncestorOfClass("Model") and not table.find(registered,hit:FindFirstAncestorOfClass("Model")) then
  70. if canattack then
  71. canattack = false
  72. table.insert(registered,hit:FindFirstAncestorOfClass("Model"))
  73. local who = hit:FindFirstAncestorOfClass("Model")
  74. stamp:Play()
  75. stamp.Ended:Wait()
  76. wait(0.25)
  77. denied:Play()
  78. denied.Ended:Wait()
  79. local NOOO = Instance.new("Sound",hit)
  80. NOOO.SoundId = "http://www.roblox.com/asset/?id=4197502822"
  81. NOOO.Volume = 1.5
  82. NOOO.TimePosition = 0.1
  83. NOOO:Play()
  84. wait(0.5)
  85. for i,v in pairs(who:GetDescendants()) do
  86. if v:IsA("BasePart") then
  87. v:Destroy()
  88. end
  89. end
  90. end
  91. end
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement