Advertisement
joe201501

Infinite health guy

May 29th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.53 KB | None | 0 0
  1. -- Made by 552557
  2.  
  3.  
  4.  
  5. local player = game:GetService("Players").LocalPlayer
  6. local mouse = player:GetMouse()
  7. repeat wait() until player.Character
  8. local character = player.Character
  9.  
  10. character.Humanoid.MaxHealth = 999999999999999999999
  11. wait(.05)
  12. character.Humanoid.Health = character.Humanoid.MaxHealth
  13. character.Animate:Destroy()
  14. character.Humanoid.Animator:Destroy()
  15.  
  16. local bloodlust = 0
  17.  
  18. function sound(parent, id, playonremove, volume, speed)
  19. local audio = Instance.new("Sound", parent)
  20. audio.SoundId = id
  21. audio.PlaybackSpeed = speed
  22. audio.PlayOnRemove = playonremove
  23. audio.Volume = volume
  24. if playonremove then
  25. audio:Destroy()
  26. else
  27. audio.Looped = true
  28. audio.Playing = true
  29. end
  30. end
  31.  
  32. function hitBox(object, offset, radius, damage, physical)
  33. for i, v in pairs(workspace:GetChildren()) do
  34. local humanoid = v:FindFirstChild("Humanoid")
  35. local torso = v:FindFirstChild("HumanoidRootPart")
  36. if torso and (torso.CFrame.p - (object.CFrame*offset).p).magnitude < radius then
  37. if humanoid then
  38. if not humanoid:IsDescendantOf(character) then
  39. humanoid:TakeDamage(damage)
  40. bloodlust = bloodlust + damage/2
  41. if physical then
  42. sound(torso, "rbxassetid://566593606", true, 1, .8)
  43. fx["gore"](torso, 2, 4)
  44. else
  45. return
  46. end
  47. end
  48. end
  49. end
  50. end
  51. end
  52.  
  53. sound(character.Torso, "rbxassetid://296761095", false, 1, .8)
  54.  
  55. character["Right Arm"].Size = character["Right Arm"].Size*3
  56. character["Left Arm"].Size = character["Left Arm"].Size*3
  57. character["Right Leg"].Size = character["Right Leg"].Size*3
  58. character["Left Leg"].Size = character["Left Leg"].Size*3
  59. character["Torso"].Size = character["Torso"].Size*3
  60. character["HumanoidRootPart"].Size = character["HumanoidRootPart"].Size*3
  61. character["Head"].Size = character["Head"].Size*3
  62.  
  63. local clawp = Instance.new("Part")
  64. clawp.Size = Vector3.new(3.7, 4.7, 9.7)
  65. clawp.BrickColor = BrickColor.new("Really red")
  66. clawp.Material = Enum.Material.Neon
  67. clawp.Transparency = .5
  68. clawp.Anchored = false
  69. clawp.CanCollide = false
  70. clawp.Parent = character["Right Arm"]
  71.  
  72. local clawp2 = Instance.new("Part")
  73. clawp2.Size = Vector3.new(3.7, 4.7, 9.7)
  74. clawp2.BrickColor = BrickColor.new("Really red")
  75. clawp2.Material = Enum.Material.Neon
  76. clawp2.Transparency = .5
  77. clawp2.Anchored = false
  78. clawp2.CanCollide = false
  79. clawp2.Parent = character["Left Arm"]
  80.  
  81. local mesh = Instance.new("SpecialMesh", clawp)
  82. mesh.MeshId = "http://www.roblox.com/asset/?id=10681506"
  83. mesh.Scale = Vector3.new(12, 8, 4)
  84.  
  85. local mesh2 = Instance.new("SpecialMesh", clawp2)
  86. mesh2.MeshId = "http://www.roblox.com/asset/?id=10681506"
  87. mesh2.Scale = Vector3.new(12, 8, 4)
  88.  
  89. local rarm = Instance.new("Weld", character)
  90. rarm.Part0 = character.Torso
  91. rarm.Part1 = character["Right Arm"]
  92. rarm.C0 = CFrame.new(4.5, 0, 0)
  93.  
  94. local larm = Instance.new("Weld", character)
  95. larm.Part0 = character.Torso
  96. larm.Part1 = character["Left Arm"]
  97. larm.C0 = CFrame.new(-4.5, 0, 0)
  98.  
  99. local rleg = Instance.new("Weld", character)
  100. rleg.Part0 = character.Torso
  101. rleg.Part1 = character["Right Leg"]
  102. rleg.C0 = CFrame.new(1.5, -6, 0)
  103.  
  104. local lleg = Instance.new("Weld", character)
  105. lleg.Part0 = character.Torso
  106. lleg.Part1 = character["Left Leg"]
  107. lleg.C0 = CFrame.new(-1.5, -6, 0)
  108.  
  109. local torso = Instance.new("Weld", character)
  110. torso.Part0 = character.HumanoidRootPart
  111. torso.Part1 = character.Torso
  112.  
  113. local head = Instance.new("Weld", character)
  114. head.Part0 = character.Torso
  115. head.Part1 = character.Head
  116. head.C0 = CFrame.new(0, 4.5, 0)
  117.  
  118. local claw = Instance.new("Weld", character)
  119. claw.Part0 = character["Right Arm"]
  120. claw.Part1 = clawp
  121. claw.C0 = claw.C0:lerp(CFrame.new(1, -6, 0)*CFrame.Angles(math.rad(90), 0, 0), 1)
  122.  
  123. local claw2 = Instance.new("Weld", character)
  124. claw2.Part0 = character["Left Arm"]
  125. claw2.Part1 = clawp2
  126. claw2.C0 = claw2.C0:lerp(CFrame.new(-1, -6, 0)*CFrame.Angles(math.rad(90), 0, math.rad(180)), 1)
  127.  
  128. local Sine = 0
  129. local Change = 1
  130. local State = "Idle"
  131.  
  132. fx = {
  133. gore = function(object, duration, blooddrops)
  134. for drops = 1, blooddrops do
  135. local blood = Instance.new("Part")
  136. blood.BrickColor = BrickColor.new("Bright red")
  137. blood.CanCollide = true
  138. blood.Anchored = false
  139. blood.Size = Vector3.new(1, .1, 1)
  140. blood.Parent = workspace
  141. blood.CFrame = object.CFrame
  142. game:GetService("Debris"):AddItem(blood, duration)
  143. end
  144. end;
  145. powerup = function(object, duration, healthboost)
  146. for i = 0, duration do
  147. game:GetService("RunService").RenderStepped:wait()
  148. local effect = Instance.new("Part")
  149. effect.Shape = "Cylinder"
  150. effect.CanCollide = false
  151. effect.Anchored = true
  152. effect.Material = Enum.Material.Neon
  153. effect.BrickColor = BrickColor.new("Bright red")
  154. effect.Size = Vector3.new(9, 16, 9)
  155. effect.CFrame = object.CFrame
  156. effect.Parent = object
  157. local mesh = Instance.new("SpecialMesh", effect)
  158. for i = 0, 1, .1 do
  159. game:GetService("RunService").RenderStepped:wait()
  160. mesh.Scale = mesh.Scale + Vector3.new(.5, 1, .5)
  161. effect.Transparency = i
  162. effect.CFrame = object.CFrame
  163. character.Humanoid.Health = character.Humanoid.Health + healthboost
  164. end
  165. effect:Destroy()
  166. healthboost = 0
  167. end
  168. end;
  169. jumpspot = function(object, pos, warning)
  170. local spot = Instance.new("Part")
  171. spot.Shape = "Cylinder"
  172. spot.Anchored = true
  173. spot.CanCollide = false
  174. spot.BrickColor = BrickColor.new("Bright red")
  175. spot.Transparency = .5
  176. spot.Material = Enum.Material.Neon
  177. spot.FormFactor = Enum.FormFactor.Custom
  178. spot.Size = Vector3.new(18, .6, 18)
  179. spot.CFrame = pos*CFrame.Angles(0, 0, math.rad(90))
  180. spot.Parent = workspace
  181. local mesh = Instance.new("SpecialMesh", spot)
  182. mesh.Scale = Vector3.new(.2, 100, 50)
  183. mesh.MeshType = Enum.MeshType.Cylinder
  184. local spotwarn = Instance.new("Part")
  185. spotwarn.Shape = "Cylinder"
  186. spotwarn.Anchored = true
  187. spotwarn.CanCollide = false
  188. spotwarn.BrickColor = BrickColor.new("Really red")
  189. spotwarn.Material = Enum.Material.Neon
  190. spotwarn.Transparency = .2
  191. spotwarn.FormFactor = Enum.FormFactor.Custom
  192. spotwarn.Size = spot.Size
  193. spotwarn.CFrame = spot.CFrame
  194. spotwarn.Parent = workspace
  195. local mesh2 = Instance.new("SpecialMesh", spotwarn)
  196. mesh2.Scale = Vector3.new(.2, 100, 50)
  197. mesh2.MeshType = Enum.MeshType.Cylinder
  198. game:GetService("Debris"):AddItem(spot, 15)
  199. game:GetService("Debris"):AddItem(spotwarn, 15)
  200. for i = 1, warning do
  201. wait()
  202. mesh2.Scale = mesh2.Scale - Vector3.new(0, 2, 0)
  203. spotwarn.CFrame = spot.CFrame
  204. end
  205. object:MoveTo(spot.Position + Vector3.new(0, 40, 0))
  206. local exp = Instance.new("Part")
  207. exp.Anchored = true
  208. exp.CanCollide = false
  209. exp.BrickColor = BrickColor.new("Bright red")
  210. exp.Material = Enum.Material.Neon
  211. exp.Size = Vector3.new(27, 27, 27)
  212. exp.CFrame = spot.CFrame
  213. exp.Parent = workspace
  214. game:GetService("Debris"):AddItem(exp, 15)
  215. local mesh3 = Instance.new("SpecialMesh", exp)
  216. mesh3.MeshType = Enum.MeshType.Brick
  217. for i = 0, 1, .05 do
  218. wait()
  219. exp.Transparency = i
  220. mesh3.Scale = mesh3.Scale + Vector3.new(.05, .05, .05)
  221. exp.CFrame = exp.CFrame*CFrame.Angles(.2, .2, .2)
  222. end
  223. spot:Destroy()
  224. spotwarn:Destroy()
  225. exp:Destroy()
  226. end
  227. }
  228.  
  229. debounces = {
  230. ["Attacking"] = false;
  231. ["CanTeleport"] = true
  232. }
  233.  
  234. Combo = 1
  235.  
  236. function combo1()
  237. if debounces["Attacking"] == false and Combo == 1 then
  238. debounces["Attacking"] = true
  239. for i = 1, 8 do
  240. game:GetService("RunService").RenderStepped:wait()
  241. rarm.C0 = rarm.C0:lerp(CFrame.new(4.5, .1, 1)*CFrame.Angles(math.rad(-30), math.rad(-90), math.rad(10)), .30)
  242. larm.C0 = larm.C0:lerp(CFrame.new(-4.6, .2, -.5)*CFrame.Angles(math.rad(10), math.rad(10), 0), .30)
  243. torso.C0 = torso.C0:lerp(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10), 0, 0), .30)
  244. end
  245. sound(clawp, "rbxassetid://588693922", true, 1, 1)
  246. hitBox(character.HumanoidRootPart, CFrame.new(2.5, 0, -5), 14.5, 15, true)
  247. for i = 1, 8 do
  248. game:GetService("RunService").RenderStepped:wait()
  249. rarm.C0 = rarm.C0:lerp(CFrame.new(4.2, 1.8, -4.2)*CFrame.Angles(math.rad(70), math.rad(-90), math.rad(-50)), .30)
  250. larm.C0 = larm.C0:lerp(CFrame.new(-4.6, .2, -.5)*CFrame.Angles(math.rad(10), math.rad(10), 0), .30)
  251. torso.C0 = torso.C0:lerp(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10), 0, 0), .30)
  252. end
  253. debounces["Attacking"] = false
  254. Combo = Combo + 1
  255. end
  256. end
  257.  
  258. function combo2()
  259. if debounces["Attacking"] == false and Combo == 2 then
  260. debounces["Attacking"] = true
  261. for i = 1, 8 do
  262. game:GetService("RunService").RenderStepped:wait()
  263. rarm.C0 = rarm.C0:lerp(CFrame.new(4.6, .2, -.5)*CFrame.Angles(math.rad(-10), math.rad(-10), 0), .30)
  264. larm.C0 = larm.C0:lerp(CFrame.new(-4.5, .1, 1)*CFrame.Angles(math.rad(-30), math.rad(90), math.rad(-10)), .30)
  265. torso.C0 = torso.C0:lerp(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10), 0, 0), .30)
  266. end
  267. sound(clawp2, "rbxassetid://588693579", true, 1, 1)
  268. hitBox(character.HumanoidRootPart, CFrame.new(-2.5, 0, -5), 14.5, 15, true)
  269. for i = 1, 8 do
  270. game:GetService("RunService").RenderStepped:wait()
  271. rarm.C0 = rarm.C0:lerp(CFrame.new(4.2, .2, -.5)*CFrame.Angles(math.rad(10), math.rad(10), 0), .30)
  272. larm.C0 = larm.C0:lerp(CFrame.new(-4.6, 1.9, -4.2)*CFrame.Angles(math.rad(70), math.rad(90), math.rad(50)), .30)
  273. torso.C0 = torso.C0:lerp(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10), 0, 0), .30)
  274. end
  275. debounces["Attacking"] = false
  276. Combo = 1
  277. end
  278. end
  279.  
  280. function bloodheal()
  281. if debounces["Attacking"] == false and bloodlust > 0 then
  282. debounces["Attacking"] = true
  283. for i = 1, 10 do
  284. game:GetService("RunService").RenderStepped:wait()
  285. rarm.C0 = rarm.C0:lerp(CFrame.new(4.6, 2, -1.2)*CFrame.Angles(math.rad(160), math.rad(15), math.rad(20)), .30)
  286. larm.C0 = larm.C0:lerp(CFrame.new(-4.6, 2, -1.2)*CFrame.Angles(math.rad(160), math.rad(-15), math.rad(-20)), .30)
  287. torso.C0 = torso.C0:lerp(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10), math.rad(10), math.rad(5)), .30)
  288. end
  289. fx["powerup"](character.HumanoidRootPart, 4, bloodlust)
  290. debounces["Attacking"] = false
  291. end
  292. end
  293.  
  294. function teleport()
  295. if debounces["Attacking"] == false and debounces["CanTeleport"] == true then
  296. debounces["Attacking"] = true
  297. debounces["CanTeleport"] = false
  298. fx["jumpspot"](character, mouse.Hit, 50)
  299. debounces["Attacking"] = false
  300. delay(5, function()
  301. debounces["CanTeleport"] = true
  302. end)
  303. end
  304. end
  305.  
  306. mouse.Button1Down:connect(function()
  307. combo1()
  308. end)
  309.  
  310. mouse.Button1Down:connect(function()
  311. combo2()
  312. end)
  313.  
  314. mouse.KeyDown:connect(function(key)
  315. key = key:lower()
  316. if key == "b" then
  317. bloodheal()
  318. end
  319. end)
  320.  
  321. mouse.KeyDown:connect(function(key)
  322. key = key:lower()
  323. if key == "v" then
  324. teleport()
  325. end
  326. end)
  327.  
  328. game:GetService("RunService").Heartbeat:connect(function()
  329. Sine = Sine + Change
  330. walkingMagnitude = Vector3.new(character.Torso.Velocity.X, 0, character.Torso.Velocity.Z).magnitude
  331. if walkingMagnitude > 2 then
  332. State = "Walking"
  333. rleg.C0 = rleg.C0:lerp(CFrame.new(1.8, -6-math.cos(Sine/12)/1.2/4.5, math.sin(Sine/12)/1.2*3)*CFrame.Angles(-math.sin(Sine/12)/1.2, 0, math.rad(5)), .15)
  334. lleg.C0 = lleg.C0:lerp(CFrame.new(-1.8, -6+math.cos(Sine/12)/1.2/4.5, -math.sin(Sine/12)/1.2*3)*CFrame.Angles(math.sin(Sine/12)/1.2, 0, math.rad(-5)), .15)
  335. if debounces["Attacking"] == false then
  336. rarm.C0 = rarm.C0:lerp(CFrame.new(4.5-math.sin(Sine/6)/3.5*2, 0, -math.sin(Sine/12)/1.2*2)*CFrame.Angles(math.sin(Sine/12)/1.2, 0, -math.sin(Sine/6)/1.2/2), .15)
  337. larm.C0 = larm.C0:lerp(CFrame.new(-4.5+math.sin(Sine/6)/3.5*2, 0, math.sin(Sine/12)/1.2*2)*CFrame.Angles(-math.sin(Sine/12)/1.2, 0, math.sin(Sine/6)/1.2/2), .15)
  338. torso.C0 = torso.C0:lerp(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10)+math.sin(Sine/6)/2/3.5, 0, 0), .15)
  339. end
  340. elseif walkingMagnitude < 2 then
  341. State = "Idle"
  342. rleg.C0 = rleg.C0:lerp(CFrame.new(1.7, -6-math.cos(Sine/15)/1.2/2.5, -3)*CFrame.Angles(math.rad(10), math.rad(-10), math.rad(-5)), .15)
  343. lleg.C0 = lleg.C0:lerp(CFrame.new(-2, -6-math.cos(Sine/15)/1.2/2.5, .8)*CFrame.Angles(math.rad(-10), math.rad(10), math.rad(-5)), .15)
  344. if debounces["Attacking"] == false then
  345. rarm.C0 = rarm.C0:lerp(CFrame.new(5.2, .2+math.sin(Sine/15)/1.2/2.5, -.3)*CFrame.Angles(math.rad(-20), math.rad(10), math.rad(20)), .15)
  346. larm.C0 = larm.C0:lerp(CFrame.new(-4.7, .2+math.sin(Sine/15)/1.2/2.5, -1.1)*CFrame.Angles(math.rad(-20), math.rad(100), math.rad(50)), .15)
  347. torso.C0 = torso.C0:lerp(CFrame.new(0, -.1+math.cos(Sine/15)/1.2/2.5, 0)*CFrame.Angles(math.rad(-10), math.rad(10), math.rad(5)), .15)
  348. end
  349. end
  350. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement