Advertisement
ERROR_CODE

Ban Hammer

Oct 9th, 2023 (edited)
66,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.83 KB | None | 0 0
  1. --Ban Hammer made by ERROR_CODE
  2. local BanSound = Instance.new("Sound")
  3. local Id = "157878578"
  4. BanSound.Parent = game.Workspace
  5. BanSound.SoundId = "rbxassetid://"..Id
  6. BanSound.Looped = false
  7. BanSound.Volume = 1
  8. local mouse = game.Players.LocalPlayer:GetMouse()
  9. local On = Instance.new("StringValue")
  10. Tool0 = Instance.new("Tool")
  11. Part1 = Instance.new("Part")
  12. SpecialMesh2 = Instance.new("SpecialMesh")
  13. Tool0.Name = "BannHammer"
  14. Tool0.Parent = game.Players.LocalPlayer.Backpack
  15. Tool0.TextureId = "http://www.roblox.com/asset/?id=10684453"
  16. Tool0.Grip = CFrame.new(0.100000001, -0.400000006, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  17. Tool0.GripPos = Vector3.new(0.10000000149011612, -0.4000000059604645, 0)
  18. Tool0.ToolTip = "Ban Hammer"
  19. Part1.Name = "Handle"
  20. Part1.Parent = Tool0
  21. Part1.CFrame = CFrame.new(10.9154053, 1, -20.9892578, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  22. Part1.Orientation = Vector3.new(90, 0, 0)
  23. Part1.Position = Vector3.new(10.9154052734375, 1, -18.9892578125)
  24. Part1.Rotation = Vector3.new(-90, 0, 0)
  25. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  26. Part1.Size = Vector3.new(0.5, 0.5, 0.5)
  27. Part1.BottomSurface = Enum.SurfaceType.Smooth
  28. Part1.BrickColor = BrickColor.new("Bright yellow")
  29. Part1.TopSurface = Enum.SurfaceType.Smooth
  30. Part1.brickColor = BrickColor.new("Bright yellow")
  31. Part1.FormFactor = Enum.FormFactor.Custom
  32. Part1.formFactor = Enum.FormFactor.Custom
  33. SpecialMesh2.Parent = Part1
  34. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10604848"
  35. SpecialMesh2.Scale = Part1.Size
  36. SpecialMesh2.TextureId = "http://www.roblox.com/asset?id=10605252"
  37. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  38. On.Parent = Tool0
  39. On.Value = "Off"
  40. AnimationId = "48138189"
  41. local Anim = Instance.new("Animation")
  42. Anim.AnimationId = "rbxassetid://"..AnimationId
  43. local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
  44.  
  45. AnimationId2 = "54673790"
  46. local Anim2 = Instance.new("Animation")
  47. Anim2.AnimationId = "rbxassetid://"..AnimationId2
  48. local k2 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim2)
  49.  
  50. mouse.Button1Up:Connect(function()
  51.     if On.Value == "Off" then
  52.     else
  53.         if mouse.Target.Locked == true then
  54. BanSound:Stop()
  55. BanSound.Playing = true
  56.             mouse.Target:Destroy()
  57.         else
  58. BanSound:Stop()
  59. BanSound.Playing = true
  60.             mouse.Target:Destroy()
  61.         end
  62.     end
  63. end)
  64.  
  65.  
  66.  
  67. Tool0.Activated:Connect(function()
  68. k2:Play()
  69. for _,v in pairs(game.Players:GetPlayers()) do
  70.         if v~=game.Players.LocalPlayer then
  71.             local ohString1 = "Destroy"
  72.             local ohInstance2 = v
  73.            
  74.             game:GetService("ReplicatedStorage").Events.Props.PropRE:FireServer(ohString1, ohInstance2)
  75.         end
  76.     end
  77. end)
  78.  
  79. Tool0.Equipped:Connect(function()
  80. k:Play()
  81. On.Value = "On"
  82. end)
  83.  
  84. Tool0.Unequipped:Connect(function()
  85. k:Stop()
  86. On.Value = "Off"
  87. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement