SebTDZ

Forever Ban Hammer

Jul 28th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. local tool = Instance.new("Tool")
  2. tool.Name = "Hammer"
  3. tool.Parent = owner.Backpack
  4.  
  5. function rgb(RED,GREEN,BLUE)
  6.     local Count = 1 / 255
  7.     --Red Count
  8.     local red = Count * RED
  9.     --Green Count
  10.     local green = Count * GREEN
  11.     --Blue Count
  12.     local blue = Count * BLUE
  13.     --Give Color3
  14.     local FColor = Color3.new(red,green,blue)
  15.     return FColor
  16. end
  17.  
  18. local handle = Instance.new("Part")
  19. handle.Name = "Handle"
  20. handle.Parent = tool
  21. handle.Size = Vector3.new(0.2, 3, 0.2)
  22. handle.Color = rgb(110, 70, 45)
  23.  
  24. local handle2 = Instance.new("Part")
  25. handle2.Name = "Handle2"
  26. handle2.Parent = handle
  27. handle2.Size = Vector3.new(2.5, 2.5, 5.5)
  28. handle2.Shape = Enum.PartType.Cylinder
  29. handle2.Color = rgb(110, 70, 45)
  30.  
  31. local weld = Instance.new("Weld")
  32. weld.Name = "weld"
  33. weld.Parent = handle
  34. weld.Part0 = handle
  35. weld.Part1 = handle2
  36. weld.C1 = CFrame.fromOrientation(0,80,0) + Vector3.new(0,-3.5 + 1,0)
  37.  
  38. db = false
  39.  
  40. handle2.Touched:Connect(function(p)
  41.     if db then
  42.         local velo = Instance.new("BodyVelocity", p)
  43.         velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  44.         velo.Velocity = Vector3.new(0,60,0)
  45.         p.Anchored = false
  46.         p.CanCollide = false
  47.     end
  48. end)
  49.  
  50. tool.Activated:Connect(function()
  51.     if db == false then
  52.         local old = tool.GripUp
  53.         local od = 1 / 360
  54.         local od2 = od * 560
  55.         tool.GripUp = old + Vector3.new(0,0,od2 * 2)
  56.         db = true
  57.         wait(1)
  58.         db = false
  59.         tool.GripUp = old
  60.     end
  61. end)
Add Comment
Please, Sign In to add comment