Nico1702

Demonic Ban Hammer Script

May 29th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.54 KB | None | 0 0
  1. --Created by LuckyPlayerScripter Discord: FenixYT#0390
  2. --ROBLOX's Ban Hammer Is back!
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. mouse = plr:GetMouse()
  6. whitecolor = Color3.new(1,1,1)
  7. epicmode = false
  8. normal = true
  9. for i,v in pairs(char:GetChildren()) do
  10. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  11. v:Destroy()
  12. end
  13. end
  14. local shirt = Instance.new("Shirt",char)
  15. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=607785311"
  16. local pants = Instance.new("Pants",char)
  17. pants.PantsTemplate = "http://www.roblox.com/asset/?id=348211416"
  18. local bdycolors = char["Body Colors"]
  19. bdycolors.HeadColor3 = whitecolor
  20. bdycolors.LeftArmColor3 = whitecolor
  21. bdycolors.LeftLegColor3 = whitecolor
  22. bdycolors.RightArmColor3 = whitecolor
  23. bdycolors.RightLegColor3 = whitecolor
  24. bdycolors.TorsoColor3 = whitecolor
  25.  
  26. -- Face
  27. char.Head.face.Texture = "http://www.roblox.com/asset/?id=26053664"
  28. z = Instance.new("Sound", char)
  29. z.SoundId = "rbxassetid://837104892"--837104892
  30. z.Looped = true
  31. z.Pitch = 1
  32. z.Volume = 10
  33. wait(.001)
  34. z:Play()
  35. --------------------------------
  36. plr1 = Instance.new("Part",char)
  37. plr1.FormFactor = Enum.FormFactor.Custom
  38. plr1.Size = Vector3.new(1.8,0.8,1.8)
  39. plr1.CanCollide = false
  40. plr1.Locked = true
  41. plr1.BottomSurface = Enum.SurfaceType.Smooth
  42. plr1.TopSurface = Enum.SurfaceType.Smooth
  43. SMesh = Instance.new("SpecialMesh", p1)
  44. SMesh.MeshId = "http://www.roblox.com/asset/?id=71483350"
  45. SMesh.MeshType = Enum.MeshType.FileMesh
  46. SMesh.Name = "Mesh"
  47. SMesh.TextureId = "http://www.roblox.com/asset/?id=607698990"
  48. w1 = Instance.new("Weld", hed)
  49. w1.Part0 = hed
  50. w1.C0 = CFrame.new(0,0.76,0.2)*CFrame.Angles(0.3,0,0)
  51. w1.Part1 = p1
  52. w1.C1 = CFrame.new(0, 0, 0)
  53. -----------
  54. CV="Maroon"
  55. Player = game.Players.LocalPlayer
  56. Character = Player.Character
  57. local txt = Instance.new("BillboardGui", Character)
  58. txt.Adornee = Character .Head
  59. txt.Name = "_status"
  60. txt.Size = UDim2.new(2, 0, 1.2, 0)
  61. txt.StudsOffset = Vector3.new(-9, 8, 0)
  62. local text = Instance.new("TextLabel", txt)
  63. text.Size = UDim2.new(10, 0, 7, 0)
  64. text.FontSize = "Size24"
  65. text.TextScaled = true
  66. text.TextTransparency = 0
  67. text.BackgroundTransparency = 1
  68. text.TextTransparency = 0
  69. text.TextStrokeTransparency = 0
  70. text.Font = "Arcade"
  71. text.TextStrokeColor3 = Color3.new(255,0,0)
  72.  
  73. v=Instance.new("Part")
  74. v.Name = "ColorBrick"
  75. v.Parent=Player.Character
  76. v.FormFactor="Symmetric"
  77. v.Anchored=true
  78. v.CanCollide=false
  79. v.BottomSurface="Smooth"
  80. v.TopSurface="Smooth"
  81. v.Size=Vector3.new(10,5,3)
  82. v.Transparency=1
  83. v.CFrame=Character.Torso.CFrame
  84. v.BrickColor=BrickColor.new(CV)
  85. v.Transparency=1
  86. text.TextColor3 = Color3.new(255,0,0)
  87. v.Shape="Block"
  88. text.Text = "ROBLOX"
  89. -----------------------------------------
  90. function sandbox(var,func)
  91. local env = getfenv(func)
  92. local newenv = setmetatable({},{
  93. __index = function(self,k)
  94. if k=="script" then
  95. return var
  96. else
  97. return env[k]
  98. end
  99. end,
  100. })
  101. setfenv(func,newenv)
  102. return func
  103. end
  104. cors = {}
  105. mas = Instance.new("Model",game:GetService("Lighting"))
  106. Tool0 = Instance.new("Tool")
  107. Part1 = Instance.new("Part")
  108. Sound2 = Instance.new("Sound")
  109. SpecialMesh3 = Instance.new("SpecialMesh")
  110. ParticleEmitter4 = Instance.new("ParticleEmitter")
  111. PointLight5 = Instance.new("PointLight")
  112. Script6 = Instance.new("Script")
  113. LocalScript7 = Instance.new("LocalScript")
  114. Script8 = Instance.new("Script")
  115. PointLight9 = Instance.new("PointLight")
  116. Tool0.Name = "BanHammer"
  117. Tool0.Parent = mas
  118. Tool0.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  119. Tool0.GripPos = Vector3.new(0, -1, 0)
  120. Part1.Name = "Handle"
  121. Part1.Parent = Tool0
  122. Part1.CFrame = CFrame.new(32.008461, 0.891610622, -25.8348217, 0.39936024, -0.916794062, -5.90707568e-05, -0.00029530219, -6.41899824e-05, -0.99999994, 0.916794002, 0.39936021, -0.000296359474)
  123. Part1.Orientation = Vector3.new(89.9799957, -168.729996, -102.259995)
  124. Part1.Position = Vector3.new(32.008461, 0.891610622, -25.8348217)
  125. Part1.Rotation = Vector3.new(90.0199966, 0, 66.4599991)
  126. Part1.Velocity = Vector3.new(0.00131022232, -0.00751958555, 0.00376307126)
  127. Part1.Size = Vector3.new(1, 4.80000019, 1)
  128. Part1.RotVelocity = Vector3.new(-0.00235919608, 0.000430068758, 0.00397496484)
  129. Sound2.Name = "Boom"
  130. Sound2.Parent = Part1
  131. Sound2.SoundId = "rbxasset://sounds/Rocket shot.wav"
  132. Sound2.Volume = 1
  133. SpecialMesh3.Parent = Part1
  134. SpecialMesh3.MeshId = "rbxassetid://10604848"
  135. SpecialMesh3.TextureId = "rbxassetid://94840359"
  136. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  137. ParticleEmitter4.Parent = Part1
  138. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  139. ParticleEmitter4.LightInfluence = 1
  140. PointLight5.Parent = Part1
  141. PointLight5.Color = Color3.new(1, 0, 0.0156863)
  142. PointLight5.Range = 60
  143. PointLight5.Brightness = 9.9999998430675e+17
  144. Script6.Name = "HammerScript"
  145. Script6.Parent = Tool0
  146. table.insert(cors,sandbox(Script6,function()
  147. -------- OMG HAX
  148.  
  149. r = game:service("RunService")
  150.  
  151.  
  152. Tool = script.Parent
  153. hammer = Tool.Handle
  154.  
  155. local shockRing = Instance.new("Part")
  156. shockRing.formFactor = 2
  157. shockRing.Size = Vector3.new(1, 0.60, 999999)
  158. shockRing.Anchored = true
  159. shockRing.Locked = true
  160. shockRing.CanCollide = false
  161. shockRing.archivable = false
  162. shockRing.TopSurface = 0
  163. shockRing.BottomSurface = 0
  164. shockRing.Transparency = 1
  165. local decal = Instance.new("Decal")
  166. decal.Face = 1
  167. decal.Texture = "http://www.roblox.com/asset/?version=1&id=1280730"
  168. decal.Parent = shockRing
  169.  
  170. local bottomDecal = decal:Clone()
  171. bottomDecal.Face = 4
  172. bottomDecal.Parent = shockRing
  173.  
  174.  
  175.  
  176. function doDamage(hit)
  177. local humanoid = hit.Parent:findFirstChild("Humanoid")
  178. local vCharacter = Tool.Parent
  179. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  180. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  181. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  182. tagHumanoid(humanoid, vPlayer)
  183. humanoid:TakeDamage(humanoid.MaxHealth)
  184. if humanoid.Health <= 0 then
  185. local c = hit.CFrame
  186. hit.CFrame = CFrame.new(hit.Position)
  187. hit.CFrame = c
  188. end
  189. delay(1, function() untagHumanoid(humanoid) end)
  190. else
  191. local c = hit.CFrame hit:BreakJoints() hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c
  192. end
  193. end
  194.  
  195.  
  196. function tagHumanoid(humanoid, player)
  197. local creator_tag = Instance.new("ObjectValue")
  198. creator_tag.Value = player
  199. creator_tag.Name = "creator"
  200. creator_tag.Parent = humanoid
  201. end
  202.  
  203. function untagHumanoid(humanoid)
  204. if humanoid ~= nil then
  205. local tag = humanoid:findFirstChild("creator")
  206. if tag ~= nil then
  207. tag.Parent = nil
  208. end
  209. end
  210. end
  211.  
  212. function blow(obj, pos, notme)
  213. if (obj ~= notme) then
  214. if (obj.className == "Part") or (obj.className == "Seat") then
  215. if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 96) and (pos.y <= obj.Position.y + 8) and (pos.y >= obj.Position.y - 8) then
  216. delay((pos - obj.Position).magnitude / 96, function() doDamage(obj) obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 end)
  217. end
  218. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  219. local list = obj:GetChildren()
  220. for x = 1, #list do
  221. blow(list[x], pos, notme)
  222. end
  223. end
  224. end
  225. end
  226.  
  227. function attack()
  228. damage = slash_damage
  229. local anim = Instance.new("StringValue")
  230. anim.Name = "toolanim"
  231. anim.Value = "Slash"
  232. anim.Parent = Tool
  233. wait(0.2)
  234.  
  235. print("Blasting!")
  236.  
  237. local pos = hammer.CFrame * (Vector3.new(0, 1.4, 0) * hammer.Mesh.Scale)
  238.  
  239. blow(workspace, pos, Tool.Parent)
  240.  
  241. shockRing.CFrame = CFrame.new(pos)
  242. for x = 1, 29 do
  243. delay(x / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(6.4, 0, 6.4) * x shockRing.Parent = Tool end)
  244. end
  245. delay(1, function() shockRing.Parent = nil end)
  246. end
  247.  
  248.  
  249. Tool.Enabled = true
  250. function onActivated()
  251.  
  252. if not Tool.Enabled then
  253. return
  254. end
  255.  
  256. Tool.Enabled = false
  257.  
  258. local character = Tool.Parent;
  259. local humanoid = character.Humanoid
  260. if humanoid == nil then
  261. print("Humanoid not found")
  262. return
  263. end
  264.  
  265. hammer.Boom:Play()
  266. attack()
  267.  
  268. wait(0.5)
  269.  
  270. Tool.Enabled = true
  271. end
  272.  
  273.  
  274. script.Parent.Activated:connect(onActivated)
  275. --script.Parent.Equipped:connect(onEquipped)
  276. end))
  277. LocalScript7.Name = "Local Gui"
  278. LocalScript7.Parent = Tool0
  279. LocalScript7.LinkedSource = "http://www.roblox.com/asset/?id=1014476"
  280. Script8.Name = "PUT THIS IN THE WEAPON"
  281. Script8.Parent = Tool0
  282. table.insert(cors,sandbox(Script8,function()
  283. local debounce = false
  284.  
  285. function getPlayer(humanoid)
  286. local players = game.Players:children()
  287. for i = 1, #players do
  288. if players[i].Character.Humanoid == humanoid then return players[i] end
  289. end
  290. return nil
  291. end
  292.  
  293. function onTouch(part)
  294.  
  295. local human = part.Parent:findFirstChild("Humanoid")
  296. if (human ~= nil) and debounce == false then
  297.  
  298. debounce = true
  299.  
  300. local player = getPlayer(human)
  301.  
  302. if (player == nil) then return end
  303.  
  304. script.Parent:clone().Parent = player.Backpack
  305.  
  306. wait(2)
  307. debounce = false
  308. end
  309. end
  310.  
  311.  
  312. script.Parent.Parent.Touched:connect(onTouch)
  313.  
  314. end))
  315. PointLight9.Parent = Tool0
  316. PointLight9.Color = Color3.new(0.666667, 0, 1)
  317. PointLight9.Range = 60
  318. PointLight9.Brightness = 9.9999996802857e+37
  319. for i,v in pairs(mas:GetChildren()) do
  320. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  321. pcall(function() v:MakeJoints() end)
  322. end
  323. mas:Destroy()
  324. for i,v in pairs(cors) do
  325. spawn(function()
  326. pcall(v)
  327. end)
  328. end
Add Comment
Please, Sign In to add comment