KrYn0MoRe

ban hammer v1.5

Oct 10th, 2020 (edited)
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.68 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  4.  
  5. Tool0 = Instance.new("Tool")
  6. Part1 = Instance.new("Part")
  7. SpecialMesh2 = Instance.new("SpecialMesh")
  8. Tool0.Name = "BanHammar"
  9. Tool0.Parent = plr.Backpack
  10. Tool0.TextureId = "http://www.roblox.com/asset/?id=10684453"
  11. Tool0.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  12. Tool0.GripPos = Vector3.new(0, -1, 0)
  13. Part1.Name = "Handle"
  14. Part1.Parent = Tool0
  15. Part1.CFrame = CFrame.new(-22.43046, 2.26852894, -68.1637268, -9.28728914e-05, -0.677499533, -0.735523343, 0.0380967073, 0.734986424, -0.677010179, 0.999273837, -0.0280841347, 0.0257421304)
  16. Part1.Orientation = Vector3.new(42.6100006, -88, 2.97000003)
  17. Part1.Position = Vector3.new(-22.43046, 2.26852894, -68.1637268)
  18. Part1.Rotation = Vector3.new(87.8199997, -47.3499985, 90.0100021)
  19. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  20. Part1.Size = Vector3.new(1.7, 5.2, 2.9)
  21. Part1.BottomSurface = Enum.SurfaceType.Smooth
  22. Part1.BrickColor = BrickColor.new("Dark stone grey")
  23. Part1.TopSurface = Enum.SurfaceType.Smooth
  24. Part1.brickColor = BrickColor.new("Dark stone grey")
  25. Part1.FormFactor = Enum.FormFactor.Plate
  26. Part1.formFactor = Enum.FormFactor.Plate
  27. SpecialMesh2.Parent = Part1
  28. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10604848"
  29. SpecialMesh2.Scale = Vector3.new(0.5, 0.5, 0.5)
  30. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=10605252"
  31. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  32.  
  33. local handle = Tool0.Handle
  34.  
  35. local slap = Instance.new("Sound")
  36. slap.Parent = Part1
  37. slap.SoundId = "rbxassetid://155363126"
  38. slap.Volume = .5
  39.  
  40. local equipped = false
  41. local using = false
  42.  
  43. handle.Touched:Connect(function(obj)
  44.     if using then else return end
  45.     local targchar,targtorso,targhum
  46.     pcall(function()
  47.         targchar = obj.Parent
  48.     end)
  49.     pcall(function()
  50.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart") or targchar:FindFirstChild("Head")
  51.     end)
  52.     pcall(function()
  53.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  54.     end)
  55.     if targchar and not obj:IsDescendantOf(char) and targtorso and targhum and not targhum:FindFirstChild("Got hit with KrY's Hammer") then
  56.         local tempval = Instance.new("IntValue")
  57.         tempval.Parent = targhum
  58.         tempval.Name = "Got hit with KrY's Hammer"
  59.         local fire = Instance.new("Fire")
  60.         fire.Parent = targtorso
  61.         local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
  62.         att1.Position = Vector3.new(0,-targtorso.Size.Y/2,0)
  63.         att2.Position = Vector3.new(0,targtorso.Size.Y/2,0)
  64.         att1.Parent = targtorso
  65.         att2.Parent = targtorso
  66.         local trail = Instance.new("Trail")
  67.         trail.Attachment0 = att1
  68.         trail.Attachment1 = att2
  69.         trail.Parent = targtorso
  70.         local force = Instance.new("BodyVelocity")
  71.         force.Parent = targtorso
  72.         force.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  73.         force.Velocity = torso.CFrame.lookVector*300+Vector3.new(0,100,0)
  74.         local or_force = Instance.new("BodyAngularVelocity")
  75.         or_force.Parent = targtorso
  76.         or_force.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  77.         or_force.P = math.huge
  78.         or_force.AngularVelocity = Vector3.new(math.random(-360,360),math.random(-360,360),math.random(-360,360)) --torso.CFrame.lookVector*1000+Vector3.new(0,100,0)
  79.         game:GetService("Debris"):AddItem(force,0.5)
  80.         --game:GetService("Debris"):AddItem(tempval,2)
  81.         game:GetService("Debris"):AddItem(or_force,0.5)
  82.         slap:Play()
  83.         wait(1)
  84.         local ss = {4953187368,4953187704}
  85.         local exp_gore = Instance.new("Sound")
  86.         exp_gore.SoundId = "rbxassetid://" .. ss[math.random(1,#ss)]
  87.         exp_gore.Volume = 10
  88.         exp_gore.Parent = targtorso
  89.         exp_gore:Play()
  90.         local pe = Instance.new("ParticleEmitter")
  91.         pe.Speed = NumberRange.new(100, 100)
  92.         pe.Color = ColorSequence.new({
  93.             ColorSequenceKeypoint.new(0,Color3.new(1, 0, 0)),
  94.             ColorSequenceKeypoint.new(0.5,Color3.new(1, 0.33333, 0)),
  95.             ColorSequenceKeypoint.new(1,Color3.new(1, 1, 1)),
  96.         })
  97.         pe.LightEmission = 0.80000001192093
  98.         pe.Texture = "rbxassetid://162359401"
  99.         pe.Size = NumberSequence.new({
  100.             NumberSequenceKeypoint.new(0,0),
  101.             NumberSequenceKeypoint.new(0.0264,10),
  102.             NumberSequenceKeypoint.new(0.775,10),
  103.             NumberSequenceKeypoint.new(0.949,4),
  104.             NumberSequenceKeypoint.new(1,4),
  105.         })
  106.         --pe.Drag = 0.60000002384186
  107.         pe.Lifetime = NumberRange.new(1, 2)
  108.         pe.Rate = 150
  109.         pe.SpreadAngle = Vector2.new(90, 90)
  110.         pe.VelocitySpread = 90
  111.         pe.Parent = targtorso
  112.         spawn(function()
  113.             pe.Enabled = true
  114.             wait(0.5)
  115.             pe.Enabled = false
  116.             game:GetService("Debris"):AddItem(pe,3)
  117.         end)
  118.         local ex = Instance.new("Explosion")
  119.         ex.Position = targtorso.Position
  120.         ex.BlastPressure = 100000
  121.         ex.BlastRadius = 100
  122.         ex.DestroyJointRadiusPercent = 1
  123.         ex.Visible = true
  124.         ex.Position = targtorso.Position
  125.         ex.Parent = targtorso
  126.         wait(2)
  127.         targchar:BreakJoints()
  128.     end
  129. end)
  130.  
  131. Tool0.Equipped:Connect(function()
  132.     pcall(function()
  133.         char = Tool0.Parent
  134.     end)
  135.     pcall(function()
  136.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  137.     end)
  138.     pcall(function()
  139.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  140.     end)
  141.     if plr and char and torso then else Tool0.Parent = workspace; return; end
  142.     equipped = true
  143. end)
  144.  
  145. Tool0.Unequipped:Connect(function()
  146.     equipped = false
  147. end)
  148.  
  149. Tool0.Activated:Connect(function()
  150.     using = true
  151.     game:GetService("TweenService"):Create(Tool0,TweenInfo.new(0.1),{Grip = CFrame.new(0, -0.87482065, -0.177019119, 1, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)}):Play()
  152.     wait(0.3)
  153.     game:GetService("TweenService"):Create(Tool0,TweenInfo.new(0.2),{Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
  154.     using = false
  155. end)
Add Comment
Please, Sign In to add comment