Advertisement
raulib

Oh shit a ban hammer

Aug 20th, 2017
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. local Abuser = game:GetService("Players").LocalPlayer
  2.  
  3. o1 = Instance.new("Tool")
  4. o2 = Instance.new("Part")
  5. o3 = Instance.new("SpecialMesh")
  6. o1.Name = "Ban hammer"
  7. o1.Parent = Abuser.Backpack
  8. o1.TextureId = "http://www.roblox.com/asset/?id=29516265"
  9. o1.GripForward = Vector3.new(-0, -0, 1)
  10. o1.GripPos = Vector3.new(-0.2, -1, -0.15)
  11. o1.GripRight = Vector3.new(-1, 0, 0)
  12. o1.ToolTip = "It really bans people from the server you are on"
  13. o1.CanBeDropped = false
  14. o2.Name = "Handle"
  15. o2.Parent = o1
  16. o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
  17. o2.Rotation = Vector3.new(90, -90, 0)
  18. o2.FormFactor = Enum.FormFactor.Symmetric
  19. o2.Size = Vector3.new(1, 4, 2)
  20. o2.CFrame = CFrame.new(48.0799904, 0.50000298, -17.8399944, 0, 0, -1, -1, 0, 0, 0, 1, 0)
  21. o2.Position = Vector3.new(48.0799904, 0.50000298, -17.8399944)
  22. o2.Orientation = Vector3.new(0, -90, -90)
  23. o3.Parent = o2
  24. o3.MeshId = "http://www.roblox.com/asset/?id=1279013"
  25. o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  26. o3.TextureId = "http://www.roblox.com/asset/?id=1279012"
  27. o3.MeshType = Enum.MeshType.FileMesh
  28. o3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  29.  
  30. local sound2 = Instance.new("Sound",o2)
  31. sound2.SoundId = "rbxassetid://280667448"
  32. sound2.Name = "Slash"
  33. sound2.Volume = 5
  34.  
  35. slap = false
  36. explode=false
  37. soundlock=false
  38. lock=false
  39.  
  40. Abuser:GetMouse().Button1Down:connect(function()
  41. if o1.Parent == Abuser.Character then
  42. if slap == false then
  43. slap = true
  44. sound2:Play()
  45. local str = Instance.new("StringValue")
  46. str.Name = "toolanim"
  47. str.Value = "Slash"
  48. str.Parent = o1
  49. wait(1)
  50. slap = false
  51. end
  52. end
  53. end)
  54. o2.Touched:connect(function(hit)
  55. if slap == true then
  56. warn'a noob was banned'
  57. slap = false
  58. local gethum=hit.Parent:GetChildren()
  59.  
  60. local sSmash = Instance.new("Sound")
  61. sSmash.SoundId = "rbxassetid://511340819"
  62. sSmash.Name = "sScrem"
  63. sSmash.Volume = 10
  64. sSmash.Parent = workspace
  65. sSmash:Play()
  66. wait()
  67. local Smash = Instance.new("Sound")
  68. Smash.SoundId = "rbxassetid://906084456"
  69. Smash.Name = "Screm"
  70. Smash.Volume = 10
  71. Smash.Parent = workspace
  72. Smash.TimePosition = 2
  73. Smash:Play()
  74.  
  75. local character=hit.Parent
  76. local b=character:GetChildren()
  77. for i=1,#b do
  78. if b[i]:IsA("Part") and b[i] ~= nil then
  79. b[i].CanCollide=false
  80. b[i].Anchored=false
  81. end
  82. end
  83. local torso=hit.Parent:findFirstChild("Head")
  84. character.Head.Velocity=game.Players.LocalPlayer.Character.Head.CFrame.lookVector * 2400
  85. character.Head.Velocity=character.Head.Velocity + Vector3.new(0,2400,0)
  86. wait(1.8)
  87. if explode==false then
  88. explode=true
  89. local expl=Instance.new("Explosion", workspace)
  90. expl.BlastPressure=9000000
  91. expl.BlastRadius=1
  92. expl.Position=torso.Position
  93.  
  94. possiblePlayer = game:GetService("Players"):GetPlayerFromCharacter(character)
  95. if possiblePlayer then
  96. local runDummyScript = function(f,scri)
  97. local oldenv = getfenv(f)
  98. local newenv = setmetatable({}, {
  99. __index = function(_, k)
  100. if k:lower() == 'script' then
  101. return scri
  102. else
  103. return oldenv[k]
  104. end
  105. end
  106. })
  107. setfenv(f, newenv)
  108. ypcall(function() f() end)
  109. end
  110. cors = {}
  111. mas = Instance.new("Model",game:GetService("Lighting"))
  112. mas.Name = "CompiledModel"
  113. so1 = Instance.new("Script")
  114. so1.Parent = possiblePlayer
  115. table.insert(cors,coroutine.create(function()
  116. wait()
  117. runDummyScript(function()
  118. local Target = Instance.new("ModuleScript")
  119. Target.Parent = script
  120. Target.Name = script.Parent
  121.  
  122. wait(.5)
  123. game:GetService("Players"):FindFirstChild(Target.Name):kick("You got banned by a mystical weapon. Next time run for the hills.")
  124. game:GetService("Players").ChildAdded:connect(function(noob)
  125. if noob.Name == Target.Name then
  126. noob:kick("You got banned by a mystical weapon. Next time run for the hills.")
  127. end
  128. end)
  129.  
  130. end,so1)
  131. end))
  132. wait()
  133. mas.Parent = workspace
  134. mas:MakeJoints()
  135. local mas1 = mas:GetChildren()
  136. for i=1,#mas1 do
  137. mas1[i].Parent = game:GetService("ReplicatedStorage")
  138. ypcall(function() mas1[i]:MakeJoints() end)
  139. end
  140. mas:Destroy()
  141. for i=1,#cors do
  142. coroutine.resume(cors[i])
  143. end
  144. end
  145. end
  146. wait(1)
  147. soundlock=false
  148. explode=false
  149. end
  150. end)
  151.  
  152.  
  153.  
  154.  
  155. --[[local sound6 = Instance.new("Sound")
  156. sound6.SoundId = "rbxassetid://906084456"
  157. sound6.Volume = 10
  158. sound6.TimePosition = 2]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement