Advertisement
Godofadmin1337

ban heamr fe

Dec 24th, 2017
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.72 KB | None | 0 0
  1.  
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. LocalScript1 = Instance.new("LocalScript")
  20. Part2 = Instance.new("Part")
  21. Sound3 = Instance.new("Sound")
  22. SpecialMesh4 = Instance.new("SpecialMesh")
  23. Script5 = Instance.new("Script")
  24. Script6 = Instance.new("Script")
  25. Tool0.Name = "BanHammer"
  26. Tool0.Parent = mas
  27. Tool0.GripPos = Vector3.new(0, -1.29999995, 0)
  28. LocalScript1.Name = "Local Gui"
  29. LocalScript1.Parent = Tool0
  30. Part2.Name = "Handle"
  31. Part2.Parent = Tool0
  32. Part2.BrickColor = BrickColor.new("Dark stone grey")
  33. Part2.Rotation = Vector3.new(-0.0799999982, 86.1999969, 90.0799942)
  34. Part2.RotVelocity = Vector3.new(0.00102792226, -0.000492732797, -0.00233189948)
  35. Part2.Velocity = Vector3.new(0.00164371042, -0.00827400293, -0.000668970461)
  36. Part2.FormFactor = Enum.FormFactor.Symmetric
  37. Part2.Size = Vector3.new(1, 4, 2)
  38. Part2.CFrame = CFrame.new(-33.9286079, 0.891649067, 7.43305969, -8.98174985e-05, -0.0663281381, 0.997797906, 1, 2.43193026e-05, 9.1587659e-05, -3.04132845e-05, 0.997797906, 0.0663281009)
  39. Part2.BottomSurface = Enum.SurfaceType.Smooth
  40. Part2.TopSurface = Enum.SurfaceType.Smooth
  41. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  42. Part2.Position = Vector3.new(-33.9286079, 0.891649067, 7.43305969)
  43. Part2.Orientation = Vector3.new(-0.00999999978, 86.1999969, 90)
  44. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  45. Sound3.Name = "Boom"
  46. Sound3.Parent = Part2
  47. Sound3.SoundId = "rbxasset://sounds/Rocket shot.wav"
  48. Sound3.Volume = 1
  49. SpecialMesh4.Parent = Part2
  50. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=10604848"
  51. SpecialMesh4.Scale = Vector3.new(0.5, 0.5, 0.5)
  52. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=10605252"
  53. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  54. SpecialMesh4.Scale = Vector3.new(0.5, 0.5, 0.5)
  55. Script5.Name = "HammerScript"
  56. Script5.Parent = Tool0
  57. table.insert(cors,sandbox(Script5,function()
  58. -------- OMG HAX
  59.  
  60. r = game:service("RunService")
  61.  
  62.  
  63. Tool = script.Parent
  64. hammer = Tool.Handle
  65.  
  66. local shockRing = Instance.new("Part")
  67. shockRing.formFactor = 2
  68. shockRing.Size = Vector3.new(1, 0.4, 1)
  69. shockRing.Anchored = true
  70. shockRing.Locked = true
  71. shockRing.CanCollide = false
  72. shockRing.archivable = false
  73. shockRing.TopSurface = 0
  74. shockRing.BottomSurface = 0
  75. shockRing.Transparency = 1
  76. local decal = Instance.new("Decal")
  77. decal.Face = 1
  78. decal.Texture = "http://www.roblox.com/asset/?version=1&id=1280730"
  79. decal.Parent = shockRing
  80.  
  81. local bottomDecal = decal:Clone()
  82. bottomDecal.Face = 4
  83. bottomDecal.Parent = shockRing
  84.  
  85.  
  86.  
  87. function doDamage(hit)
  88. local humanoid = hit.Parent:findFirstChild("Humanoid")
  89. local vCharacter = Tool.Parent
  90. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  91. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  92. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  93. tagHumanoid(humanoid, vPlayer)
  94. humanoid:TakeDamage(humanoid.MaxHealth)
  95. if humanoid.Health <= 0 then
  96. local c = hit.CFrame
  97. hit.CFrame = CFrame.new(hit.Position)
  98. hit.CFrame = c
  99. end
  100. delay(1, function() untagHumanoid(humanoid) end)
  101. else
  102. local c = hit.CFrame hit:BreakJoints() hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c
  103. end
  104. end
  105.  
  106.  
  107. function tagHumanoid(humanoid, player)
  108. local creator_tag = Instance.new("ObjectValue")
  109. creator_tag.Value = player
  110. creator_tag.Name = "creator"
  111. creator_tag.Parent = humanoid
  112. end
  113.  
  114. function untagHumanoid(humanoid)
  115. if humanoid ~= nil then
  116. local tag = humanoid:findFirstChild("creator")
  117. if tag ~= nil then
  118. tag.Parent = nil
  119. end
  120. end
  121. end
  122.  
  123. function blow(obj, pos, notme)
  124. if (obj ~= notme) then
  125. if (obj.className == "Part") or (obj.className == "Seat") then
  126. 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
  127. 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)
  128. end
  129. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  130. local list = obj:GetChildren()
  131. for x = 1, #list do
  132. blow(list[x], pos, notme)
  133. end
  134. end
  135. end
  136. end
  137.  
  138. function attack()
  139. damage = slash_damage
  140. local anim = Instance.new("StringValue")
  141. anim.Name = "toolanim"
  142. anim.Value = "Slash"
  143. anim.Parent = Tool
  144. wait(0.2)
  145.  
  146. print("Blasting!")
  147.  
  148. local pos = hammer.CFrame * (Vector3.new(0, 1.4, 0) * hammer.Mesh.Scale)
  149.  
  150. blow(workspace, pos, Tool.Parent)
  151.  
  152. shockRing.CFrame = CFrame.new(pos)
  153. for x = 1, 29 do
  154. 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)
  155. end
  156. delay(1, function() shockRing.Parent = nil end)
  157. end
  158.  
  159.  
  160. Tool.Enabled = true
  161. function onActivated()
  162.  
  163. if not Tool.Enabled then
  164. return
  165. end
  166.  
  167. Tool.Enabled = false
  168.  
  169. local character = Tool.Parent;
  170. local humanoid = character.Humanoid
  171. if humanoid == nil then
  172. print("Humanoid not found")
  173. return
  174. end
  175.  
  176. hammer.Boom:Play()
  177. attack()
  178.  
  179. wait(0.5)
  180.  
  181. Tool.Enabled = true
  182. end
  183.  
  184.  
  185. script.Parent.Activated:connect(onActivated)
  186. --script.Parent.Equipped:connect(onEquipped)
  187. end))
  188. Script6.Name = "Two-Handed Script"
  189. Script6.Parent = Tool0
  190. table.insert(cors,sandbox(Script6,function()
  191. --By Naruto902
  192. --player
  193. player = nil
  194. --save shoulders
  195. RSH, LSH = nil, nil
  196. --grip
  197. GRP = nil
  198. --welds
  199. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  200. --what anim
  201. anim = "none"
  202.  
  203. --onselected, save shoulders and get player
  204. script.Parent.Equipped:connect(function()
  205. player = game.Players:playerFromCharacter(script.Parent.Parent)
  206. local ch = script.Parent.Parent
  207. RSH = ch.Torso["Right Shoulder"]
  208. LSH = ch.Torso["Left Shoulder"]
  209. GRP = ch["Right Arm"].RightGrip
  210. --
  211. RSH.Parent = nil
  212. LSH.Parent = nil
  213. --
  214. RW.Part0 = ch.Torso
  215. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  216. RW.C1 = CFrame.new(0, 0.5, 0)
  217. RW.Part1 = ch["Right Arm"]
  218. RW.Parent = ch.Torso
  219. _G.R = RW
  220. --
  221. LW.Part0 = ch.Torso
  222. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  223. LW.C1 = CFrame.new(0, 0.5, 0)
  224. LW.Part1 = ch["Left Arm"]
  225. LW.Parent = ch.Torso
  226. _G.L = LW
  227. --
  228. GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1, 0, 0)
  229. --Bring_Arm_Up animation
  230. for i = 0, 1, 0.05 do
  231. wait()
  232. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i)
  233. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i)
  234. LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0)
  235. end
  236. end)
  237.  
  238. --griptcf = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2+0.5, 0, 0)
  239.  
  240. script.Parent.Unequipped:connect(function()
  241. --Bring_Arm_Down animation
  242. for i = 1, 0, -0.05 do
  243. wait()
  244. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i)
  245. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i)
  246. LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0)
  247. end
  248. RW.Parent = nil
  249. LW.Parent = nil
  250. RSH.Parent = player.Character.Torso
  251. LSH.Parent = player.Character.Torso
  252. end)
  253.  
  254. function HomeRunHit(part)
  255. local h = (part.Parent or game):FindFirstChild("Humanoid") --or findfirstchild optimization
  256. if h then
  257. h.Sit = true
  258. wait()
  259. h.Jump = true
  260. h.Parent.Torso.Velocity = (CFrame.new(script.Parent.Handle.Position, h.Parent.Torso.Position).lookVector * 100) + Vector3.new(0, 30, 0)
  261. h.Parent.Torso.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  262. end
  263. end
  264. end))
  265. for i,v in pairs(mas:GetChildren()) do
  266. v.Parent = owner.Backpack
  267. pcall(function() v:MakeJoints() end)
  268. end
  269. mas:Destroy()
  270. for i,v in pairs(cors) do
  271. spawn(function()
  272. pcall(v)
  273. end)
  274. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement