Advertisement
DaOMEGAa32

hammer oof v2

Oct 11th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.64 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Decal3 = Instance.new("Decal")
  23. Decal4 = Instance.new("Decal")
  24. Fire5 = Instance.new("Fire")
  25. ParticleEmitter6 = Instance.new("ParticleEmitter")
  26. Sound7 = Instance.new("Sound")
  27. ParticleEmitter8 = Instance.new("ParticleEmitter")
  28. ParticleEmitter9 = Instance.new("ParticleEmitter")
  29. ParticleEmitter10 = Instance.new("ParticleEmitter")
  30. ParticleEmitter11 = Instance.new("ParticleEmitter")
  31. ParticleEmitter12 = Instance.new("ParticleEmitter")
  32. ParticleEmitter13 = Instance.new("ParticleEmitter")
  33. ParticleEmitter14 = Instance.new("ParticleEmitter")
  34. ParticleEmitter15 = Instance.new("ParticleEmitter")
  35. ParticleEmitter16 = Instance.new("ParticleEmitter")
  36. ParticleEmitter17 = Instance.new("ParticleEmitter")
  37. ParticleEmitter18 = Instance.new("ParticleEmitter")
  38. ParticleEmitter19 = Instance.new("ParticleEmitter")
  39. ParticleEmitter20 = Instance.new("ParticleEmitter")
  40. ParticleEmitter21 = Instance.new("ParticleEmitter")
  41. ParticleEmitter22 = Instance.new("ParticleEmitter")
  42. ParticleEmitter23 = Instance.new("ParticleEmitter")
  43. ParticleEmitter24 = Instance.new("ParticleEmitter")
  44. Animation25 = Instance.new("Animation")
  45. LocalScript26 = Instance.new("LocalScript")
  46. Sound27 = Instance.new("Sound")
  47. DistortionSoundEffect28 = Instance.new("DistortionSoundEffect")
  48. Camera29 = Instance.new("Camera")
  49. LocalScript30 = Instance.new("LocalScript")
  50. LocalScript31 = Instance.new("LocalScript")
  51. Script32 = Instance.new("Script")
  52. Tool0.Name = "00f hammer"
  53. Tool0.Parent = mas
  54. Tool0.TextureId = "http://www.roblox.com/asset/?id=10684453"
  55. Tool0.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  56. Tool0.GripPos = Vector3.new(0, -1, 0)
  57. Part1.Name = "Handle"
  58. Part1.Parent = Tool0
  59. Part1.CFrame = CFrame.new(20.3991413, 2.26852894, -22.8657913, -9.28728914e-05, -0.677499533, -0.735523343, 0.0380967073, 0.734986424, -0.677010179, 0.999273837, -0.0280841347, 0.0257421304)
  60. Part1.Orientation = Vector3.new(42.6100006, -88, 2.97000003)
  61. Part1.Position = Vector3.new(20.3991413, 2.26852894, -22.8657913)
  62. Part1.Rotation = Vector3.new(87.8199997, -47.3499985, 90.0100021)
  63. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  64. Part1.Size = Vector3.new(1, 5.20000029, 1)
  65. Part1.BottomSurface = Enum.SurfaceType.Smooth
  66. Part1.BrickColor = BrickColor.new("Dark stone grey")
  67. Part1.TopSurface = Enum.SurfaceType.Smooth
  68. Part1.brickColor = BrickColor.new("Dark stone grey")
  69. Part1.FormFactor = Enum.FormFactor.Plate
  70. Part1.formFactor = Enum.FormFactor.Plate
  71. SpecialMesh2.Parent = Part1
  72. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10604848"
  73. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1541697269"
  74. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  75. Decal3.Parent = Part1
  76. Decal3.Texture = "http://www.roblox.com/asset/?id=1541697269"
  77. Decal3.Face = Enum.NormalId.Top
  78. Decal4.Parent = Part1
  79. Decal4.Texture = "http://www.roblox.com/asset/?id=2505377919"
  80. Decal4.Face = Enum.NormalId.Top
  81. Fire5.Parent = Part1
  82. Fire5.Color = Color3.new(1, 1, 0)
  83. Fire5.Size = 20
  84. Fire5.size = 20
  85. ParticleEmitter6.Parent = Part1
  86. ParticleEmitter6.Speed = NumberRange.new(100, 100)
  87. ParticleEmitter6.Texture = "http://www.roblox.com/asset/?id=1541697269"
  88. ParticleEmitter6.Size = NumberSequence.new(8,8)
  89. ParticleEmitter6.Acceleration = Vector3.new(0, -10, 0)
  90. ParticleEmitter6.Lifetime = NumberRange.new(1, 2)
  91. ParticleEmitter6.Rate = 99
  92. ParticleEmitter6.RotSpeed = NumberRange.new(360, 360)
  93. ParticleEmitter6.SpreadAngle = Vector2.new(360, 360)
  94. ParticleEmitter6.VelocitySpread = 360
  95. Sound7.Name = "THE NOOB SONG!!!!!!!"
  96. Sound7.Parent = Part1
  97. Sound7.Looped = true
  98. Sound7.Playing = true
  99. Sound7.SoundId = "rbxassetid://869166432"
  100. Sound7.Volume = 10
  101. ParticleEmitter8.Parent = Part1
  102. ParticleEmitter8.Speed = NumberRange.new(100, 100)
  103. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 1, 1))
  104. ParticleEmitter8.Texture = "http://www.roblox.com/asset/?id=1541697269"
  105. ParticleEmitter8.Acceleration = Vector3.new(0, -10, 0)
  106. ParticleEmitter8.Lifetime = NumberRange.new(1, 2)
  107. ParticleEmitter8.Rate = 99
  108. ParticleEmitter8.RotSpeed = NumberRange.new(360, 360)
  109. ParticleEmitter8.SpreadAngle = Vector2.new(360, 360)
  110. ParticleEmitter8.VelocitySpread = 360
  111. ParticleEmitter9.Parent = Part1
  112. ParticleEmitter9.Speed = NumberRange.new(100, 100)
  113. ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.0235294, 0.0392157, 1),Color3.new(1, 1, 1))
  114. ParticleEmitter9.Texture = "http://www.roblox.com/asset/?id=1541697269"
  115. ParticleEmitter9.Acceleration = Vector3.new(0, -10, 0)
  116. ParticleEmitter9.Lifetime = NumberRange.new(1, 2)
  117. ParticleEmitter9.Rate = 99
  118. ParticleEmitter9.RotSpeed = NumberRange.new(360, 360)
  119. ParticleEmitter9.SpreadAngle = Vector2.new(360, 360)
  120. ParticleEmitter9.VelocitySpread = 360
  121. ParticleEmitter10.Parent = Part1
  122. ParticleEmitter10.Speed = NumberRange.new(100, 100)
  123. ParticleEmitter10.Texture = "http://www.roblox.com/asset/?id=1541697269"
  124. ParticleEmitter10.Acceleration = Vector3.new(0, -10, 0)
  125. ParticleEmitter10.Lifetime = NumberRange.new(1, 2)
  126. ParticleEmitter10.Rate = 99
  127. ParticleEmitter10.RotSpeed = NumberRange.new(360, 360)
  128. ParticleEmitter10.SpreadAngle = Vector2.new(360, 360)
  129. ParticleEmitter10.VelocitySpread = 360
  130. ParticleEmitter11.Parent = Part1
  131. ParticleEmitter11.Speed = NumberRange.new(100, 100)
  132. ParticleEmitter11.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 1, 1))
  133. ParticleEmitter11.Texture = "http://www.roblox.com/asset/?id=1541697269"
  134. ParticleEmitter11.Acceleration = Vector3.new(0, -10, 0)
  135. ParticleEmitter11.Lifetime = NumberRange.new(1, 2)
  136. ParticleEmitter11.Rate = 99
  137. ParticleEmitter11.RotSpeed = NumberRange.new(360, 360)
  138. ParticleEmitter11.SpreadAngle = Vector2.new(360, 360)
  139. ParticleEmitter11.VelocitySpread = 360
  140. ParticleEmitter12.Parent = Part1
  141. ParticleEmitter12.Speed = NumberRange.new(100, 100)
  142. ParticleEmitter12.Color = ColorSequence.new(Color3.new(0.0235294, 0.0392157, 1),Color3.new(1, 1, 1))
  143. ParticleEmitter12.Texture = "http://www.roblox.com/asset/?id=1541697269"
  144. ParticleEmitter12.Acceleration = Vector3.new(0, -10, 0)
  145. ParticleEmitter12.Lifetime = NumberRange.new(1, 2)
  146. ParticleEmitter12.Rate = 99
  147. ParticleEmitter12.RotSpeed = NumberRange.new(360, 360)
  148. ParticleEmitter12.SpreadAngle = Vector2.new(360, 360)
  149. ParticleEmitter12.VelocitySpread = 360
  150. ParticleEmitter13.Parent = Part1
  151. ParticleEmitter13.Speed = NumberRange.new(100, 100)
  152. ParticleEmitter13.Texture = "http://www.roblox.com/asset/?id=1541697269"
  153. ParticleEmitter13.Acceleration = Vector3.new(0, -10, 0)
  154. ParticleEmitter13.Lifetime = NumberRange.new(1, 2)
  155. ParticleEmitter13.Rate = 99
  156. ParticleEmitter13.RotSpeed = NumberRange.new(360, 360)
  157. ParticleEmitter13.SpreadAngle = Vector2.new(360, 360)
  158. ParticleEmitter13.VelocitySpread = 360
  159. ParticleEmitter14.Parent = Part1
  160. ParticleEmitter14.Speed = NumberRange.new(100, 100)
  161. ParticleEmitter14.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 1, 1))
  162. ParticleEmitter14.Texture = "http://www.roblox.com/asset/?id=1541697269"
  163. ParticleEmitter14.Acceleration = Vector3.new(0, -10, 0)
  164. ParticleEmitter14.Lifetime = NumberRange.new(1, 2)
  165. ParticleEmitter14.Rate = 99
  166. ParticleEmitter14.RotSpeed = NumberRange.new(360, 360)
  167. ParticleEmitter14.SpreadAngle = Vector2.new(360, 360)
  168. ParticleEmitter14.VelocitySpread = 360
  169. ParticleEmitter15.Parent = Part1
  170. ParticleEmitter15.Speed = NumberRange.new(100, 100)
  171. ParticleEmitter15.Color = ColorSequence.new(Color3.new(0.0235294, 0.0392157, 1),Color3.new(1, 1, 1))
  172. ParticleEmitter15.Texture = "http://www.roblox.com/asset/?id=1541697269"
  173. ParticleEmitter15.Acceleration = Vector3.new(0, -10, 0)
  174. ParticleEmitter15.Lifetime = NumberRange.new(1, 2)
  175. ParticleEmitter15.Rate = 99
  176. ParticleEmitter15.RotSpeed = NumberRange.new(360, 360)
  177. ParticleEmitter15.SpreadAngle = Vector2.new(360, 360)
  178. ParticleEmitter15.VelocitySpread = 360
  179. ParticleEmitter16.Parent = Part1
  180. ParticleEmitter16.Speed = NumberRange.new(100, 100)
  181. ParticleEmitter16.Texture = "http://www.roblox.com/asset/?id=1541697269"
  182. ParticleEmitter16.Acceleration = Vector3.new(0, -10, 0)
  183. ParticleEmitter16.Lifetime = NumberRange.new(1, 2)
  184. ParticleEmitter16.Rate = 99
  185. ParticleEmitter16.RotSpeed = NumberRange.new(360, 360)
  186. ParticleEmitter16.SpreadAngle = Vector2.new(360, 360)
  187. ParticleEmitter16.VelocitySpread = 360
  188. ParticleEmitter17.Parent = Part1
  189. ParticleEmitter17.Speed = NumberRange.new(100, 100)
  190. ParticleEmitter17.Color = ColorSequence.new(Color3.new(0.0235294, 0.0392157, 1),Color3.new(1, 1, 1))
  191. ParticleEmitter17.Texture = "http://www.roblox.com/asset/?id=1541697269"
  192. ParticleEmitter17.Acceleration = Vector3.new(0, -10, 0)
  193. ParticleEmitter17.Lifetime = NumberRange.new(1, 2)
  194. ParticleEmitter17.Rate = 99
  195. ParticleEmitter17.RotSpeed = NumberRange.new(360, 360)
  196. ParticleEmitter17.SpreadAngle = Vector2.new(360, 360)
  197. ParticleEmitter17.VelocitySpread = 360
  198. ParticleEmitter18.Parent = Part1
  199. ParticleEmitter18.Speed = NumberRange.new(100, 100)
  200. ParticleEmitter18.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 1, 1))
  201. ParticleEmitter18.Texture = "http://www.roblox.com/asset/?id=1541697269"
  202. ParticleEmitter18.Acceleration = Vector3.new(0, -10, 0)
  203. ParticleEmitter18.Lifetime = NumberRange.new(1, 2)
  204. ParticleEmitter18.Rate = 99
  205. ParticleEmitter18.RotSpeed = NumberRange.new(360, 360)
  206. ParticleEmitter18.SpreadAngle = Vector2.new(360, 360)
  207. ParticleEmitter18.VelocitySpread = 360
  208. ParticleEmitter19.Parent = Part1
  209. ParticleEmitter19.Speed = NumberRange.new(100, 100)
  210. ParticleEmitter19.Texture = "http://www.roblox.com/asset/?id=1541697269"
  211. ParticleEmitter19.Acceleration = Vector3.new(0, -10, 0)
  212. ParticleEmitter19.Lifetime = NumberRange.new(1, 2)
  213. ParticleEmitter19.Rate = 99
  214. ParticleEmitter19.RotSpeed = NumberRange.new(360, 360)
  215. ParticleEmitter19.SpreadAngle = Vector2.new(360, 360)
  216. ParticleEmitter19.VelocitySpread = 360
  217. ParticleEmitter20.Parent = Part1
  218. ParticleEmitter20.Speed = NumberRange.new(100, 100)
  219. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 1, 1))
  220. ParticleEmitter20.Texture = "http://www.roblox.com/asset/?id=1541697269"
  221. ParticleEmitter20.Acceleration = Vector3.new(0, -10, 0)
  222. ParticleEmitter20.Lifetime = NumberRange.new(1, 2)
  223. ParticleEmitter20.Rate = 99
  224. ParticleEmitter20.RotSpeed = NumberRange.new(360, 360)
  225. ParticleEmitter20.SpreadAngle = Vector2.new(360, 360)
  226. ParticleEmitter20.VelocitySpread = 360
  227. ParticleEmitter21.Parent = Part1
  228. ParticleEmitter21.Speed = NumberRange.new(100, 100)
  229. ParticleEmitter21.Color = ColorSequence.new(Color3.new(0.0235294, 0.0392157, 1),Color3.new(1, 1, 1))
  230. ParticleEmitter21.Texture = "http://www.roblox.com/asset/?id=1541697269"
  231. ParticleEmitter21.Acceleration = Vector3.new(0, -10, 0)
  232. ParticleEmitter21.Lifetime = NumberRange.new(1, 2)
  233. ParticleEmitter21.Rate = 99
  234. ParticleEmitter21.RotSpeed = NumberRange.new(360, 360)
  235. ParticleEmitter21.SpreadAngle = Vector2.new(360, 360)
  236. ParticleEmitter21.VelocitySpread = 360
  237. ParticleEmitter22.Parent = Part1
  238. ParticleEmitter22.Speed = NumberRange.new(100, 100)
  239. ParticleEmitter22.Texture = "http://www.roblox.com/asset/?id=1541697269"
  240. ParticleEmitter22.Acceleration = Vector3.new(0, -10, 0)
  241. ParticleEmitter22.Lifetime = NumberRange.new(1, 2)
  242. ParticleEmitter22.Rate = 99
  243. ParticleEmitter22.RotSpeed = NumberRange.new(360, 360)
  244. ParticleEmitter22.SpreadAngle = Vector2.new(360, 360)
  245. ParticleEmitter22.VelocitySpread = 360
  246. ParticleEmitter23.Parent = Part1
  247. ParticleEmitter23.Speed = NumberRange.new(100, 100)
  248. ParticleEmitter23.Color = ColorSequence.new(Color3.new(0.0235294, 0.0392157, 1),Color3.new(1, 1, 1))
  249. ParticleEmitter23.Texture = "http://www.roblox.com/asset/?id=1541697269"
  250. ParticleEmitter23.Acceleration = Vector3.new(0, -10, 0)
  251. ParticleEmitter23.Lifetime = NumberRange.new(1, 2)
  252. ParticleEmitter23.Rate = 99
  253. ParticleEmitter23.RotSpeed = NumberRange.new(360, 360)
  254. ParticleEmitter23.SpreadAngle = Vector2.new(360, 360)
  255. ParticleEmitter23.VelocitySpread = 360
  256. ParticleEmitter24.Parent = Part1
  257. ParticleEmitter24.Speed = NumberRange.new(100, 100)
  258. ParticleEmitter24.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 1, 1))
  259. ParticleEmitter24.Texture = "http://www.roblox.com/asset/?id=1541697269"
  260. ParticleEmitter24.Acceleration = Vector3.new(0, -10, 0)
  261. ParticleEmitter24.Lifetime = NumberRange.new(1, 2)
  262. ParticleEmitter24.Rate = 99
  263. ParticleEmitter24.RotSpeed = NumberRange.new(360, 360)
  264. ParticleEmitter24.SpreadAngle = Vector2.new(360, 360)
  265. ParticleEmitter24.VelocitySpread = 360
  266. Animation25.Parent = Tool0
  267. Animation25.AnimationId = "rbxassetid://4104111881"
  268. LocalScript26.Name = "main"
  269. LocalScript26.Parent = Tool0
  270. table.insert(cors,sandbox(LocalScript26,function()
  271. --Impletion [awful coding i know]
  272. wait()
  273. explode=false
  274. soundlock=false
  275. lock=false
  276. script.Parent.Activated:connect(function(click)
  277. if lock==false then
  278. lock=true
  279. local char=script.Parent.Parent
  280. local anim=char.Humanoid:LoadAnimation(script.Parent.Animation)
  281. anim:Play()
  282. wait(1.4)
  283. lock=false
  284. end
  285. end)
  286.  
  287.  
  288.  
  289. script.Parent.Handle.Touched:connect(function(hit)
  290. local gethum=hit.Parent:GetChildren()
  291. for i=1,#gethum do
  292. if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and lock==true then
  293. local hum=gethum[i]
  294. hum.Sit=true
  295. if soundlock==false then
  296. soundlock=true
  297. script.Parent.Smash:Play()
  298. end
  299. local character=hit.Parent
  300. local b=character:GetChildren()
  301. for i=1,#b do
  302. if b[i]:IsA("Part") and b[i] ~= nil then
  303. b[i].CanCollide=false
  304. b[i].Anchored=false
  305. end
  306. end
  307. local torso=hit.Parent:findFirstChild("Torso")
  308. character.Torso.Velocity=game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 1200
  309. character.Torso.Velocity=character.Torso.Velocity + Vector3.new(0,300,0)
  310. wait(1.8)
  311. if explode==false then
  312. explode=true
  313. local expl=Instance.new("Explosion", workspace)
  314. expl.BlastPressure=9000000
  315. expl.BlastRadius=100
  316. expl.Position=torso.Position
  317. character:BreakJoints()
  318. local p=game.Players:GetPlayerFromCharacter(character)
  319. character:Destroy()
  320. if p ~= nil then
  321. p:Destroy()
  322. end
  323. end
  324. end
  325. end
  326. wait(1)
  327. soundlock=false
  328. explode=false
  329. end)
  330.  
  331. script.Parent.Equipped:connect(function(equip)
  332. game.Players.LocalPlayer.Character.Humanoid.MaxHealth=math.huge
  333. game.Players.LocalPlayer.Character.Humanoid.Health=math.huge
  334. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=25
  335. end)
  336. end))
  337. Sound27.Name = "Smash"
  338. Sound27.Parent = Tool0
  339. Sound27.Pitch = 0.69999998807907
  340. Sound27.PlaybackSpeed = 0.69999998807907
  341. Sound27.SoundId = "rbxassetid://1413058167"
  342. Sound27.Volume = 10
  343. DistortionSoundEffect28.Parent = Sound27
  344. DistortionSoundEffect28.Level = 1
  345. Camera29.Name = "ThumbnailCamera"
  346. Camera29.Parent = Tool0
  347. Camera29.CFrame = CFrame.new(1.93812001, 1.93207335, 7.85149097, -0.987820983, 0.00140062091, 0.155588225, 1.16415308e-10, 0.999959528, -0.00900173653, -0.155594513, -0.00889210403, -0.987781048)
  348. Camera29.CoordinateFrame = CFrame.new(1.93812001, 1.93207335, 7.85149097, -0.987820983, 0.00140062091, 0.155588225, 1.16415308e-10, 0.999959528, -0.00900173653, -0.155594513, -0.00889210403, -0.987781048)
  349. Camera29.Focus = CFrame.new(1.62694371, 1.95007682, 9.82705212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  350. Camera29.focus = CFrame.new(1.62694371, 1.95007682, 9.82705212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  351. LocalScript30.Name = "SpinScr"
  352. LocalScript30.Parent = Tool0
  353. table.insert(cors,sandbox(LocalScript30,function()
  354. on = 0
  355. Tool = script.Parent
  356. torso = nil
  357. human = nil
  358.  
  359. bv = Instance.new("BodyAngularVelocity")
  360. bv.P = 1250
  361. bv.angularvelocity = Vector3.new(0,26,0)
  362. bv.maxTorque = Vector3.new(0,400000,0)
  363.  
  364. function Crouch(ison)
  365. if torso == nil then
  366. torso = Tool.Parent:FindFirstChild("Torso")
  367. end
  368. if human == nil then
  369. human = Tool.Parent:FindFirstChild("Humanoid")
  370. end
  371.  
  372. if ison == 0 then
  373. while torso:FindFirstChild("BodyAngularVelocity") do
  374. torso:FindFirstChild("BodyAngularVelocity"):Remove()
  375. end
  376. human.WalkSpeed = 16
  377. elseif ison == 1 then
  378. newf = bv:Clone()
  379. newf.Parent = torso
  380. newf.archivable = false
  381. human.WalkSpeed = 32
  382. local s = Instance.new("Sound")
  383.  
  384. s.Name = "Name"
  385. s.SoundId = "rbxassetid://145799973"
  386. s.Volume = 6
  387. s.Looped = false
  388. s.archivable = false
  389.  
  390. s.Parent = game.Workspace
  391.  
  392. wait(0.1)
  393.  
  394. s:play()
  395. end
  396. end
  397.  
  398. function Key(key)
  399. if key then
  400. key = string.lower(key)
  401. if (key=="x") then --SPIN TIME!
  402. print("x key pressed")
  403. if on == 1 then
  404. on = 0
  405. elseif on == 0 then
  406. on = 1
  407. end
  408. Crouch(on)
  409. end
  410. end
  411. end
  412.  
  413. function Equip(mouse)
  414. mouse.KeyDown:connect(Key)
  415. end
  416. function Unequip()
  417. print("Unequipping!")
  418. while torso:FindFirstChild("BodyAngularVelocity") do
  419. torso:FindFirstChild("BodyAngularVelocity"):Remove()
  420. end
  421. human.WalkSpeed = 16
  422. end
  423. script.Parent.Equipped:connect(Equip)
  424. script.Parent.Unequipped:connect(Unequip)
  425. end))
  426. LocalScript31.Parent = Tool0
  427. table.insert(cors,sandbox(LocalScript31,function()
  428. -- put the script in StarterPack if you want it to work.
  429.  
  430.  
  431. Player = script.Parent.Parent
  432. mouse = Player:GetMouse()
  433. wait(1)
  434. function onKeyDown(key)
  435. Key = key:lower()
  436. if key == "z" then
  437. x = Instance.new("Part")
  438. x.BrickColor = BrickColor.new("Bright red")
  439. x.Size = Vector3.new(10,10,10)
  440. x.TopSurface = "Smooth"
  441. x.BottomSurface = "Smooth"
  442. x.Shape = "Ball"
  443. x.Transparency = 0.4
  444. fd = script.Firedamage:clone()
  445. fd.Parent = x
  446. x.CanCollide = false
  447. y = Instance.new("BodyVelocity")
  448. y.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  449. y.velocity = Player.Character.Torso.CFrame.lookVector*80
  450. x.Parent = Workspace
  451. y.Parent = x
  452. f = Instance.new("Fire", x)
  453. f.Size = 12
  454. f.Heat = 0
  455. x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -10)
  456. fd.Disabled = false
  457. game.Debris:AddItem(x, 3)
  458.  
  459.  
  460. end
  461. end
  462.  
  463. mouse.KeyDown:connect(onKeyDown)
  464. end))
  465. Script32.Name = "Firedamage"
  466. Script32.Parent = LocalScript31
  467. table.insert(cors,sandbox(Script32,function()
  468. function onDamage(Part)
  469. if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= "script.Parent.Name" then
  470. script.Disabled = true
  471. for i = 1,25 do
  472. Part.Parent.Huamnoid.Health = Part.Parent.Humanoid.Health -1
  473. wait(0,05)
  474. end
  475. script.Parent:remove()
  476. end
  477. wait()
  478. end
  479. script.Parent.Touched:connect(onDamage)
  480.  
  481. end))
  482. for i,v in pairs(mas:GetChildren()) do
  483. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  484. pcall(function() v:MakeJoints() end)
  485. end
  486. mas:Destroy()
  487. for i,v in pairs(cors) do
  488. spawn(function()
  489. pcall(v)
  490. end)
  491. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement