sawgamer1

Untitled

Jan 22nd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.82 KB | None | 0 0
  1. --//Made by Spyro
  2. --//Proteus
  3. --//Edit by ImaBoss838
  4. --[[
  5.  
  6. =======Moves=======
  7. ===[Normal mode]===
  8. -Q = Void's Wrath
  9. -E = Void Crush
  10. -R = Void Crash
  11. -F = Power Punch
  12. ===================
  13. ===[Power mode]====
  14. -Q = Pure Devastation
  15. -E = Raining Pain
  16. -R = Sonic Boom
  17. -T = Controlled Devastation
  18. ===================
  19. ====[Misc Keys]====
  20. -L = Switch between modes
  21. -K = Teleport
  22. ===================
  23. --]]
  24. UserInputService = game:GetService("UserInputService")
  25. TweenService = game:GetService("TweenService")
  26. Plr = game:GetService("Players").LocalPlayer
  27. Colours= {BrickColor.new("Black"),BrickColor.new("Royal purple")}
  28. Mouse = Plr:GetMouse()
  29. Char = Plr.Character
  30. Motor6DClones = {}
  31. BodyPartClones = {}
  32. Torso = Char.Torso
  33. HRoot = Char.HumanoidRootPart
  34. LArm = Char["Left Arm"]
  35. RArm = Char["Right Arm"]
  36. LLeg = Char["Left Leg"]
  37. RLeg = Char["Right Leg"]
  38. Head = Char.Head
  39. Hrj = HRoot.RootJoint
  40. LShold = Torso["Left Shoulder"]
  41. RShold = Torso["Right Shoulder"]
  42. LHip = Torso["Left Hip"]
  43. RHip = Torso["Right Hip"]
  44. Neck = Torso.Neck
  45. Lscf = LShold.C0
  46. Rscf = RShold.C0
  47. Lhcf = LHip.C0
  48. Rhcf = RHip.C0
  49. Ncf = Neck.C0
  50. Hrjcf = Hrj.C0
  51. local music = Instance.new("Sound")
  52. music.Parent = torso
  53. local timepos = 0
  54. local playing = true
  55. local volume = 2
  56. local song = "rbxassetid://1632083717"
  57. Human = Char:FindFirstChildOfClass("Humanoid")
  58. Rad = math.rad
  59. Sin = math.sin
  60. Random = math.random
  61. Floor = math.floor
  62. Keys = {}
  63. Attacking = false
  64. Typing = false
  65. Attacking = false
  66. SuperFly = false
  67. Flying = false
  68. Invisible = false
  69. Phase = false
  70. Anim = "Idle"
  71. Mode = "Normal"
  72. Walkspeed = 16
  73. Char.Animate.Disabled = true
  74. Human.Animator:Destroy()
  75. Human:RemoveAccessories()
  76. Char.Sound:Destroy()
  77. Char.Animate:Destroy()
  78. pcall(function()
  79. Char["Body Colors"]:Destroy()
  80. end)
  81. wait(.05)
  82. for _,v in pairs(Char:GetChildren()) do
  83. if v:IsA('Clothing') or v:IsA('Accessory') or v:IsA('Hat') then
  84. v:Destroy()
  85. elseif v:IsA('BasePart') then
  86. v.BrickColor = BrickColor.new("Grey")
  87. end
  88. end
  89. function Smooth(part)
  90. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  91. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  92. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  93. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  94. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  95. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  96. end
  97. function Create(Class,Parent,Name,Extra)
  98. local asd = Instance.new(Class,Parent)
  99. asd.Name = Name or Class
  100. if asd:IsA('BasePart') then
  101. Smooth(asd)
  102. end
  103. for i,v in pairs(Extra or {}) do
  104. asd[i] = v
  105. end
  106. return asd
  107. end
  108. function newWeld(parent, P0, P1, C0, C1)
  109. local weld = Instance.new("Motor6D", parent or P0)
  110. weld.Part0 = P0
  111. weld.Part1 = P1
  112. weld.C0 = C0 or weld.C0
  113. weld.C1 = C1 or weld.C1
  114. return weld
  115. end
  116. Shirt = Create("Shirt",Char,"Shirt",{ShirtTemplate = "rbxassetid://"})
  117. Pants = Create("Pants",Char,"Pants",{PantsTemplate = "rbxassetid://364663080"})
  118. Head.face.Texture = "rbxassetid://2276263"
  119. Bg = Create("BillboardGui",Head,"BG",{Size = UDim2.new(7,0,2,0),StudsOffset = Vector3.new(0,2,0)})
  120. Tl = Create("TextLabel",Bg,"TL",{Size = UDim2.new(1,0,1,0),BackgroundTransparency = 1,TextColor3 = Color3.fromRGB(255, 0, 0),TextScaled = true,TextStrokeTransparency = 0,Font = Enum.Font.Fantasy,Text = "Grunt"})
  121. Fist1 = Create("Part",Char,"Fist",{CanCollide = false,Size = Vector3.new(LArm.Size.X,LArm.Size.Y/2,LArm.Size.Z),Transparency = 1})
  122. FistAura1 = Create("ParticleEmitter",Fist1,"PE",{
  123. Texture = "http://www.roblox.com/asset/?id=258126401",
  124. Color = ColorSequence.new(Color3.fromRGB(0,0,0),Color3.fromRGB(170,0,0)),
  125. LightEmission = 0.5,
  126. Size = NumberSequence.new(0.719,0),
  127. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.025,0.6),NumberSequenceKeypoint.new(0.05,0.5),NumberSequenceKeypoint.new(0.5,0.5),NumberSequenceKeypoint.new(0.7,0.6),NumberSequenceKeypoint.new(1,1)}),
  128. Acceleration = Vector3.new(0,0,0),
  129. EmissionDirection = "Top",
  130. Speed = NumberRange.new(0,0),
  131. Lifetime = NumberRange.new(0.6,0.8),
  132. Rate = 500,
  133. Rotation = NumberRange.new(-180,180),
  134. RotSpeed = NumberRange.new(-50,50),
  135. ZOffset = 2,
  136. LockedToPart = false,
  137. Enabled = false
  138. })
  139. Fist1W = newWeld(LArm,Fist1,LArm,CFrame.new(0,LArm.Size.Y/2,0))
  140. Fist2 = Create("Part",Char,"Fist",{CanCollide = false,Size = Vector3.new(RArm.Size.X,RArm.Size.Y/2,RArm.Size.Z),Transparency = 1})
  141. FistAura2 = Create("ParticleEmitter",Fist2,"PE",{
  142. Texture = "http://www.roblox.com/asset/?id=258126401",
  143. Color = ColorSequence.new(Color3.fromRGB(0,0,0),Color3.fromRGB(170,0,0)),
  144. LightEmission = 0.5,
  145. Size = NumberSequence.new(0.719,0),
  146. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.025,0.6),NumberSequenceKeypoint.new(0.05,0.5),NumberSequenceKeypoint.new(0.5,0.5),NumberSequenceKeypoint.new(0.7,0.6),NumberSequenceKeypoint.new(1,1)}),
  147. Acceleration = Vector3.new(0,0,0),
  148. EmissionDirection = "Top",
  149. Speed = NumberRange.new(0,0),
  150. Lifetime = NumberRange.new(0.6,0.8),
  151. Rate = 500,
  152. Rotation = NumberRange.new(-180,180),
  153. RotSpeed = NumberRange.new(-50,50),
  154. ZOffset = 2,
  155. LockedToPart = false,
  156. Enabled = false
  157. })
  158. Fist2W = newWeld(RArm,Fist2,RArm,CFrame.new(0,RArm.Size.Y/2,0))
  159. BodyPosition = Create("BodyPosition",nil,"BP",{MaxForce = Vector3.new(0,2e8,0)})
  160. BodyVel = Create("BodyVelocity",nil,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = Vector3.new(0,0,0)})
  161. function keyDown(key)
  162. if not Attacking then--For the moves
  163. if Mode == "Normal" then
  164. if key == Enum.KeyCode.Q then
  165. Attacking = true
  166. local createEffect = true
  167. coroutine.resume(coroutine.create(function()
  168. repeat
  169. local blast = Create("Part",workspace,"Part",{Anchored = true,CanCollide = false,CFrame = HRoot.CFrame * CFrame.new(0,-2,0),BrickColor = Colours[math.random(1,#Colours)]})
  170. local mesh = Create("SpecialMesh",blast,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=20329976",Scale = Vector3.new(3,1,3)})
  171. blast.CFrame = blast.CFrame * CFrame.Angles(Rad(0),Rad(Random(-360,360)),Rad(0))
  172. coroutine.resume(coroutine.create(function()
  173. for i=0,1,0.1 do
  174. mesh.Scale = mesh.Scale:lerp(Vector3.new(10,2,10),i)
  175. blast.Transparency = i
  176. wait()
  177. end
  178. blast:Destroy()
  179. end))
  180. game:GetService("Debris"):AddItem(blast,1)
  181. wait()
  182. until not createEffect
  183. end))
  184. coroutine.resume(coroutine.create(function()
  185. repeat
  186. local effect = Create("Part",workspace,"Part",{Material = "Neon",BrickColor = Colours[Random(1,#Colours)],Size = Vector3.new(2,2,2),CanCollide = false,Anchored = false,CFrame = HRoot.CFrame * CFrame.new(Random(-10,10),-2,Random(-10,10))})
  187. Create("BodyVelocity",effect,"BV",{MaxForce = Vector3.new(0,2e8,0),Velocity = Vector3.new(0,10,0)})
  188. coroutine.resume(coroutine.create(function()
  189. for i=0,1,0.1 do
  190. effect.CFrame = effect.CFrame:lerp(effect.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360))),i)
  191. effect.Transparency = i
  192. wait()
  193. end
  194. effect:Destroy()
  195. end))
  196. game:GetService("Debris"):AddItem(effect,1)
  197. wait()
  198. until not createEffect
  199. end))
  200. for i=0,1,0.1 do
  201. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(10),Rad(0),Rad(0)),i)
  202. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  203. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  204. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-10),Rad(0),Rad(-20)),i)
  205. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-10),Rad(0),Rad(20)),i)
  206. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(10),Rad(0),Rad(0)),i)
  207. wait()
  208. end
  209. wait(1)
  210. for i=0,1,0.1 do
  211. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  212. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  213. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  214. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-40),Rad(0),Rad(40)),i)
  215. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-40),Rad(0),Rad(-40)),i)
  216. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  217. wait()
  218. if i>=0.8 then
  219. createEffect = false
  220. end
  221. end
  222. coroutine.resume(coroutine.create(function()
  223. for _,v in pairs(workspace:GetChildren()) do
  224. if v:IsA('Model') and v ~= Char and v:FindFirstChildOfClass("Humanoid") then
  225. local hum = v:FindFirstChildOfClass("Humanoid")
  226. local tor = v:FindFirstChild("Torso") or v:FindFirstChild("HumanoidRootPart")
  227. if tor then
  228. if (tor.Position-HRoot.Position).magnitude < 20 then
  229. v:BreakJoints()
  230. elseif (tor.Position-HRoot.Position).magnitude >= 20 and (tor.Position-HRoot.Position).magnitude <= 50 then
  231. for _,b in pairs(v:GetChildren()) do
  232. if b:IsA('ForceField') then
  233. b:Destroy()
  234. end
  235. end
  236. hum:TakeDamage(100-Floor((tor.Position-HRoot.Position).magnitude))
  237. end
  238. end
  239. end
  240. end
  241. end))
  242. for i=0,1,0.1 do
  243. local part = Create("Part",Char,"Effect",{Material = "Neon",Anchored = true,CanCollide = false,Size = Vector3.new(10,10,10),CFrame = HRoot.CFrame,BrickColor = Colours[Random(1,#Colours)]})
  244. coroutine.resume(coroutine.create(function()
  245. for i=0,1,0.1 do
  246. part.Size = part.Size:lerp(Vector3.new(20,20,20),i)
  247. part.CFrame = HRoot.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  248. part.Transparency = i
  249. wait()
  250. end
  251. part:Destroy()
  252. end))
  253. wait()
  254. end
  255. Attacking = false
  256. elseif key == Enum.KeyCode.E then
  257. Attacking = true
  258. local detect = true
  259. local targ = nil
  260. local targTor = nil
  261. LArm.Touched:connect(function(h)
  262. if not detect then return end
  263. if h.Parent == nil then return end
  264. if h:IsDescendantOf(Char) then return end
  265. local hum = h.Parent:FindFirstChildOfClass("Humanoid")
  266. local tor = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("HumanoidRootPart")
  267. if hum and tor then
  268. targ = h.Parent
  269. targTor = tor
  270. end
  271. end)
  272. for i=0,1,0.1 do
  273. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(0),Rad(0),Rad(-90)),i)
  274. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(90),Rad(-90)),i)
  275. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(0),Rad(0),Rad(90)),i)
  276. wait()
  277. end
  278. detect = false
  279. coroutine.resume(coroutine.create(function()
  280. if targ ~= nil and targTor ~= nil then
  281. pcall(function()
  282. targTor.Anchored = true
  283. for i=0,1,0.1 do
  284. targTor.CFrame = targTor.CFrame:lerp(HRoot.CFrame * CFrame.new(0,0,-10),i)
  285. wait()
  286. end
  287. for _,v in pairs(targ:GetChildren()) do
  288. if v:IsA('BasePart') then v.Transparency = 1 end
  289. end
  290. local orb = Create("Part",targ,"Part",{Anchored = true,CanCollide = false,Shape = "Ball",BrickColor = BrickColor.new("Black"),Size = Vector3.new(8,8,8),CFrame = targTor.CFrame})
  291. local mesh = Create("SpecialMesh",orb,"Mesh",{MeshId = "http://www.roblox.com/Asset/?id=9982590",Scale = Vector3.new(5,5,5)})
  292. game:GetService("Debris"):AddItem(orb,5)
  293. for i=0,1,0.1 do
  294. local orig = orb.CFrame
  295. mesh.Scale = mesh.Scale:lerp(Vector3.new(0.05,0.05,0.05),i)
  296. orb.CFrame = orig * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  297. wait()
  298. end
  299. orb:Destroy()
  300. targ:BreakJoints()
  301. game:GetService("Debris"):AddItem(targ,1)
  302. end)
  303. end
  304. end))
  305. Attacking = false
  306. elseif key == Enum.KeyCode.R then
  307. Attacking = true
  308. for i=0,1,0.1 do
  309. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(10),Rad(0),Rad(0)),i)
  310. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  311. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  312. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-10),Rad(0),Rad(-20)),i)
  313. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-10),Rad(0),Rad(20)),i)
  314. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(10),Rad(0),Rad(0)),i)
  315. wait()
  316. end
  317. for i=0,1,0.1 do
  318. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  319. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-20),Rad(0),Rad(0)),i)
  320. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-10),Rad(0),Rad(10)),i)
  321. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-10),Rad(0),Rad(-10)),i)
  322. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  323. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  324. wait()
  325. end
  326. local bv = Create("BodyVelocity",HRoot,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = Vector3.new(0,100,0)})
  327. wait(2)
  328. Torso.Transparency = 1
  329. Head.Transparency = 1
  330. LArm.Transparency = 1
  331. RArm.Transparency = 1
  332. LLeg.Transparency = 1
  333. RLeg.Transparency = 1
  334. Torso.Anchored = true
  335. bv:Destroy()
  336. local createEffect = true
  337. local proj = Create("Part",workspace,"Effect",{CanCollide = false,Transparency = 1,Size = Vector3.new(6,6,6),CFrame = HRoot.CFrame * CFrame.new(0,-6,0) * CFrame.Angles(Rad(-90),Rad(0),Rad(0))})
  338. local vel = Create("BodyVelocity",proj,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = proj.CFrame.lookVector * 100})
  339. workspace.CurrentCamera.CameraSubject = proj
  340. coroutine.resume(coroutine.create(function()
  341. repeat
  342. local part = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,Material = "Neon",BrickColor = Colours[Random(1,#Colours)],Size = Vector3.new(6,6,6),CFrame = proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))})
  343. game:GetService("Debris"):AddItem(part,1)
  344. coroutine.resume(coroutine.create(function()
  345. local tween = TweenService:Create(part,TweenInfo.new(1),{Size = Vector3.new(12,12,12),Transparency = 1,CFrame = part.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))})
  346. tween:Play()
  347. wait(1)
  348. part:Destroy()
  349. end))
  350. game:GetService("RunService").RenderStepped:wait()
  351. until not createEffect
  352. end))
  353. proj.Touched:connect(function(h)
  354. if h:IsDescendantOf(Char) then return end
  355. createEffect = false
  356. proj.Anchored = true
  357. Torso.CFrame = CFrame.new((proj.CFrame * CFrame.new(0,2,0)).p)
  358. Torso.Transparency = 0
  359. Head.Transparency = 0
  360. LArm.Transparency = 0
  361. RArm.Transparency = 0
  362. LLeg.Transparency = 0
  363. RLeg.Transparency = 0
  364. workspace.CurrentCamera.CameraSubject = Human
  365. coroutine.resume(coroutine.create(function()
  366. for _,v in pairs(workspace:GetChildren()) do
  367. if v:IsA('Model') and v ~= Char and v:FindFirstChildOfClass("Humanoid") then
  368. local hum = v:FindFirstChildOfClass("Humanoid")
  369. local tor = v:FindFirstChild("Torso") or v:FindFirstChild("HumanoidRootPart")
  370. if tor then
  371. local magni = (tor.Position-HRoot.Position).magnitude
  372. if magni <= 20 then
  373. v:BreakJoints()
  374. elseif magni > 20 and magni <= 50 then
  375. for _,b in pairs(v:GetChildren()) do
  376. if b:IsA('ForceField') then
  377. b:Destroy()
  378. end
  379. end
  380. hum:TakeDamage(100-Floor(magni))
  381. end
  382. end
  383. end
  384. end
  385. end))
  386. coroutine.resume(coroutine.create(function()
  387. for i=0,1,0.1 do
  388. local part = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,Material = "Neon",Size = Vector3.new(8,8,8),BrickColor = Colours[Random(1,#Colours)],CFrame = proj.CFrame})
  389. local ring = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,CFrame = proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360))),BrickColor = Colours[Random(1,#Colours)]})
  390. local mesh = Create("SpecialMesh",ring,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=3270017",Scale = Vector3.new(16,16,16)})
  391. coroutine.resume(coroutine.create(function()
  392. --[[for i=0,1,0.1 do
  393. mesh.Scale = mesh.Scale:lerp(Vector3.new(24,24,24),i)
  394. ring.Transparency = i
  395. wait()
  396. end]]
  397. TweenService:Create(ring,TweenInfo.new(1),{Transparency = 1}):Play()
  398. TweenService:Create(mesh,TweenInfo.new(1),{Scale = Vector3.new(24,24,24)}):Play()
  399. wait(1)
  400. ring:Destroy()
  401. end))
  402. coroutine.resume(coroutine.create(function()
  403. for i=0,1,0.1 do
  404. local orig = part.CFrame
  405. part.Size = part.Size:lerp(Vector3.new(16,16,16),i)
  406. part.CFrame = proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  407. part.Transparency = i
  408. wait()
  409. end
  410. part:Destroy()
  411. end))
  412. wait()
  413. end
  414. proj:Destroy()
  415. Attacking = false
  416. Torso.Anchored = false
  417. end))
  418. end)
  419. elseif key == Enum.KeyCode.F then
  420. --Super punch,send them flying
  421. FistAura1.Enabled = true
  422. Attacking = true
  423. local Punching = true
  424. local cache = {}
  425. LArm.Touched:connect(function(h)
  426. if h.Parent == nil then return end
  427. if cache[h.Parent.Name] then return end
  428. if h:IsDescendantOf(Char) then return end
  429. if not Punching then return end
  430. if h.Parent.Name:lower():find("veh") and not h.Parent.Name:lower():find("spawn") then
  431. local bv = Create("BodyVelocity",h,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = HRoot.CFrame.lookVector * 500})
  432. h.Parent:BreakJoints()
  433. game:GetService("Debris"):AddItem(bv,0.5)
  434. game:GetService("Debris"):AddItem(h.Parent,3)
  435. return
  436. end
  437. if not h.Parent:FindFirstChildOfClass("Humanoid") then return end
  438. Punching = false
  439. cache[h.Parent.Name] = true
  440. local hum = h.Parent:FindFirstChildOfClass("Humanoid")
  441. if hum.MaxHealth > 2000 then
  442. hum.MaxHealth = 2000
  443. end
  444. for _,v in pairs(h.Parent:GetChildren()) do
  445. if v:IsA('ForceField') then
  446. v:Destroy()
  447. end
  448. end
  449. if hum.Health > (hum.MaxHealth/2) then
  450. local bv = Create("BodyVelocity",h,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = HRoot.CFrame.lookVector * 100})
  451. game:GetService("Debris"):AddItem(bv,1)
  452. hum:TakeDamage(hum.MaxHealth/2)
  453. else
  454. h.Parent:BreakJoints()
  455. Torso.Anchored = true
  456. for _,v in pairs(h.Parent:GetChildren()) do
  457. if v:IsA('BasePart') then
  458. v.CanCollide = false
  459. local bv = Create("BodyVelocity",v,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = HRoot.CFrame.lookVector * 500})
  460. game:GetService("Debris"):AddItem(bv,2)
  461. end
  462. end
  463. Torso.Anchored = false
  464. end
  465. Attacking = false
  466. end)
  467. for i=0,1,0.1 do
  468. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(0),Rad(0),Rad(90)),i)
  469. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(0),Rad(0),Rad(270)),i)
  470. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(0),Rad(20),Rad(40)),i)
  471. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(20),Rad(-90)),i)
  472. wait()
  473. end
  474. wait(.1)
  475. for i=0,1,0.1 do
  476. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(0),Rad(0),Rad(270)),i)
  477. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(0),Rad(0),Rad(90)),i)
  478. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(0),Rad(-20),Rad(40)),i)
  479. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(90),Rad(-90)),i)
  480. if not Punching then
  481. break
  482. end
  483. wait()
  484. end
  485. if Punching then
  486. Punching = false
  487. Attacking = false
  488. end
  489. FistAura1.Enabled = false
  490. end
  491. else
  492. if key == Enum.KeyCode.Q then
  493. Attacking = true
  494. local createEffect = true
  495. local projFire = false
  496. coroutine.resume(coroutine.create(function()
  497. repeat
  498. local effect = Create("Part",workspace,"Part",{Material = "Neon",BrickColor = Colours[Random(1,#Colours)],Size = Vector3.new(2,2,2),CanCollide = false,Anchored = false,CFrame = HRoot.CFrame * CFrame.new(Random(-10,10),-2,Random(-10,10))})
  499. Create("BodyVelocity",effect,"BV",{MaxForce = Vector3.new(0,2e8,0),Velocity = Vector3.new(0,10,0)})
  500. coroutine.resume(coroutine.create(function()
  501. for i=0,1,0.1 do
  502. effect.CFrame = effect.CFrame:lerp(effect.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360))),i)
  503. effect.Transparency = i
  504. wait()
  505. end
  506. effect:Destroy()
  507. end))
  508. game:GetService("Debris"):AddItem(effect,1)
  509. game:GetService("RunService").RenderStepped:wait()
  510. until not createEffect
  511. end))
  512. for i=0,1,0.1 do
  513. Hrj.C0 = Hrj.C0:lerp(Hrjcf,i)
  514. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(-70),Rad(-90)),i)
  515. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(0),Rad(70),Rad(90)),i)
  516. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(10),Rad(0),Rad(0)),i)
  517. wait()
  518. end
  519. wait(1)
  520. for i=0,1,0.1 do
  521. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(-50),Rad(-90)),i)
  522. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(0),Rad(50),Rad(90)),i)
  523. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  524. if i>= 0.8 then
  525. createEffect = false
  526. end
  527. wait()
  528. end
  529. local proj = Create("Part",workspace,"Effect",{CanCollide = false,Anchored = false,Size = Vector3.new(20,40,8),CFrame = HRoot.CFrame,Transparency = 1})
  530. Create("BodyVelocity",proj,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = HRoot.CFrame.lookVector * 150})
  531. game:GetService("Debris"):AddItem(proj,2)
  532. proj.Touched:connect(function(h)
  533. if h.Parent == nil then return end
  534. if h:IsDescendantOf(Char) then return end
  535. if h.Parent.Name:lower():find("veh") then h.Parent:BreakJoints() game:GetService("Debris"):AddItem(h.Parent,3) return end
  536. h:BreakJoints()
  537. end)
  538. projFire = true
  539. proj.CFrame = HRoot.CFrame * CFrame.new(0,0,-4)
  540. coroutine.resume(coroutine.create(function()
  541. repeat
  542. coroutine.resume(coroutine.create(function()
  543. local part = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,Material = "Neon",BrickColor = Colours[Random(1,#Colours)],Size = Vector3.new(8,8,8),CFrame = proj.CFrame})
  544. part.CFrame = proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  545. game:GetService("Debris"):AddItem(part,0.1)
  546. local ring = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,CFrame = proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360))),BrickColor = Colours[Random(1,#Colours)]})
  547. local mesh = Create("SpecialMesh",ring,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=3270017",Scale = Vector3.new(8,8,8)})
  548. local tween = TweenService:Create(ring,TweenInfo.new(0.5),{Transparency = 1})
  549. local tween2 = TweenService:Create(mesh,TweenInfo.new(0.5),{Scale = Vector3.new(32,32,32)})
  550. tween:Play()
  551. tween2:Play()
  552. wait(0.5)
  553. ring:Destroy()
  554. end))
  555. game:GetService("RunService").RenderStepped:wait()
  556. until not projFire
  557. end))
  558. coroutine.resume(coroutine.create(function()
  559. wait(2)
  560. projFire = false
  561. end))
  562. Attacking = false
  563. elseif key == Enum.KeyCode.E then
  564. Attacking = true
  565. for i=0,1,0.1 do
  566. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(-20),Rad(0),Rad(0)),i)
  567. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  568. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(60),Rad(-90)),i)
  569. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(0),Rad(-60),Rad(90)),i)
  570. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(20)),i)
  571. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-20)),i)
  572. wait()
  573. end
  574. for i=0,1,0.1 do
  575. local part = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,Transparency = 1,CFrame = HRoot.CFrame * CFrame.new(Random(-50,50),-4,Random(-50,50))})
  576. game:GetService("Debris"):AddItem(part,2)
  577. coroutine.resume(coroutine.create(function()
  578. local createEffect = true
  579. local proj = Create("Part",workspace,"Effect",{CanCollide = false,Material = "Neon",Size = Vector3.new(4,4,4),CFrame = HRoot.CFrame * CFrame.new(0,200,0),BrickColor = Colours[Random(1,#Colours)]})
  580. local mesh = Create("SpecialMesh",proj,"Mesh",{MeshType = "Sphere",Scale = Vector3.new(1,1,1)})
  581. proj.CFrame = CFrame.new(proj.Position,part.Position)
  582. Create("BodyVelocity",proj,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = proj.CFrame.lookVector * 100})
  583. proj.Touched:connect(function(h)
  584. if h:IsDescendantOf(Char) then return end
  585. if h.Name == "Effect" then return end
  586. createEffect = false
  587. proj.Anchored = true
  588. coroutine.resume(coroutine.create(function()
  589. for _,v in pairs(workspace:GetChildren()) do
  590. if v:IsA('Model') and v ~= Char and v:FindFirstChildOfClass("Humanoid") then
  591. local hum = v:FindFirstChildOfClass("Humanoid")
  592. local tor = v:FindFirstChild("Torso") or v:FindFirstChild("HumanoidRootPart")
  593. if tor then
  594. local magni = (tor.Position-proj.Position).magnitude
  595. if magni <= 20 then
  596. v:BreakJoints()
  597. elseif magni > 20 and magni <= 50 then
  598. for _,b in pairs(v:GetChildren()) do
  599. if b:IsA('ForceField') then
  600. b:Destroy()
  601. end
  602. end
  603. hum:TakeDamage(100-Floor(magni))
  604. end
  605. end
  606. end
  607. end
  608. end))
  609. local tween = TweenService:Create(mesh,TweenInfo.new(2),{Scale = Vector3.new(12,12,12)})
  610. local tween2 = TweenService:Create(proj,TweenInfo.new(2),{Transparency = 1})
  611. tween:Play()
  612. tween2:Play()
  613. wait(2)
  614. proj:Destroy()
  615. end)
  616. coroutine.resume(coroutine.create(function()
  617. repeat
  618. coroutine.resume(coroutine.create(function()
  619. local brick = Create("Part",Char,"Effect",{Material = "Neon",Anchored = true,CanCollide = false,BrickColor = Colours[Random(1,#Colours)],Size = Vector3.new(4,4,4),CFrame = proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))})
  620. local bmesh = Create("BlockMesh",brick,"Mesh",{})
  621. game:GetService("Debris"):AddItem(brick,1)
  622. local tween = TweenService:Create(brick,TweenInfo.new(1),{Transparency = 1})
  623. local tween2 = TweenService:Create(bmesh,TweenInfo.new(1),{Scale = Vector3.new(3,3,3)})
  624. tween:Play()
  625. tween2:Play()
  626. wait(1)
  627. --[[for i=0,1,0.1 do
  628. bmesh.Scale = bmesh.Scale:lerp(Vector3.new(3,3,3),i)
  629. brick.Transparency = i
  630. wait()
  631. end]]
  632. brick:Destroy()
  633. end))
  634. game:GetService("RunService").RenderStepped:wait()
  635. until not createEffect
  636. end))
  637. end))
  638. wait()
  639. end
  640. Attacking = false
  641. elseif key == Enum.KeyCode.R then
  642. Attacking = true
  643. for i=0,1,0.1 do
  644. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  645. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  646. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  647. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  648. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  649. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  650. wait()
  651. end
  652. for i=0,1,0.1 do
  653. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(10),Rad(0),Rad(0)),i)
  654. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  655. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  656. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  657. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  658. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  659. if i > 0.8 and i <= 0.9 then
  660. local proj = Create("Part",workspace,"Effect",{CanCollide = false,Anchored = false,Size = Vector3.new(20,40,8),CFrame = HRoot.CFrame,Transparency = 1})
  661. Create("BodyVelocity",proj,"BV",{MaxForce = Vector3.new(2e8,2e8,2e8),Velocity = HRoot.CFrame.lookVector * 150})
  662. game:GetService("Debris"):AddItem(proj,2)
  663. proj.Touched:connect(function(h)
  664. local cf = proj.CFrame
  665. if h:IsDescendantOf(Char) then return end
  666. if h.Parent == nil then return end
  667. if h.Parent.Name:lower():find("veh") then
  668. h.Parent:BreakJoints()
  669. game:GetService("Debris"):AddItem(h.Parent,3)
  670. return
  671. end
  672. if h:IsDescendantOf(Char) then return end
  673. if h:IsA('BasePart') then
  674. if h.Parent:FindFirstChildOfClass("Humanoid") then
  675. h.Velocity = proj.CFrame.lookVector * 100
  676. end
  677. h:BreakJoints()
  678. end
  679. proj.CFrame = cf
  680. end)
  681. proj.CFrame = HRoot.CFrame * CFrame.new(0,0,-4)
  682. coroutine.resume(coroutine.create(function()
  683. repeat
  684. coroutine.resume(coroutine.create(function()
  685. local ring = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,CFrame = proj.CFrame,BrickColor = Colours[Random(1,#Colours)]})--proj.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  686. local mesh = Create("SpecialMesh",ring,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=3270017",Scale = Vector3.new(8,8,8)})
  687. local tween = TweenService:Create(ring,TweenInfo.new(0.5),{Transparency = 1})
  688. local tween2 = TweenService:Create(mesh,TweenInfo.new(0.5),{Scale = Vector3.new(32,32,32)})
  689. tween:Play()
  690. tween2:Play()
  691. wait(0.5)
  692. ring:Destroy()
  693. end))
  694. game:GetService("RunService").RenderStepped:wait()
  695. until proj.Parent == nil
  696. end))
  697. end
  698. wait()
  699. end
  700. Attacking = false
  701. elseif key == Enum.KeyCode.T then
  702. Attacking = true
  703. for i=0,1,0.1 do
  704. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(90),Rad(0),Rad(0)),i)
  705. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(0),Rad(0),Rad(-120)),i)
  706. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(0),Rad(0),Rad(120)),i)
  707. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(0),Rad(0),Rad(-70)),i)
  708. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(0),Rad(0),Rad(70)),i)
  709. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(90),Rad(0),Rad(0)),i)
  710. Torso.Transparency = i
  711. LArm.Transparency = i
  712. RArm.Transparency = i
  713. LLeg.Transparency = i
  714. RLeg.Transparency = i
  715. Head.Transparency = i
  716. FistAura1.Enabled = false
  717. FistAura2.Enabled = false
  718. Tl.Visible = false
  719. Head.face.Transparency = i
  720. wait()
  721. end
  722. local createEffect = true
  723. spawn(function()
  724. local hitbox = Create("Part",Char,"Effect",{CanCollide = false,Size = Vector3.new(8,8,8),Transparency = 1,CFrame = HRoot.CFrame})
  725. local hitWeld = newWeld(HRoot,hitbox,HRoot)
  726. BodyVel.Parent = HRoot
  727. BodyPosition.Parent = nil
  728. BodyVel.Velocity = Vector3.new(0,50,0)
  729. wait(1)
  730. hitbox.Touched:connect(function(h)
  731. if h:IsDescendantOf(Char) then return end
  732. if h.Name == "Effect" then return end
  733. if not createEffect then return end
  734. hitbox.Anchored = true
  735. hitWeld:Destroy()
  736. createEffect = false
  737. BodyVel.Velocity = Vector3.new(0,0,0)
  738. coroutine.resume(coroutine.create(function()
  739. for _,v in pairs(workspace:GetChildren()) do
  740. if v:IsA('Model') and v ~= Char and v:FindFirstChildOfClass("Humanoid") then
  741. local hum = v:FindFirstChildOfClass("Humanoid")
  742. local tor = v:FindFirstChild("Torso") or v:FindFirstChild("HumanoidRootPart")
  743. if tor then
  744. local magni = (tor.Position-HRoot.Position).magnitude
  745. if magni <= 20 then
  746. v:BreakJoints()
  747. elseif magni > 20 and magni <= 50 then
  748. for _,b in pairs(v:GetChildren()) do
  749. if b:IsA('ForceField') then
  750. b:Destroy()
  751. end
  752. end
  753. hum:TakeDamage(100-Floor(magni))
  754. end
  755. end
  756. end
  757. end
  758. end))
  759. coroutine.resume(coroutine.create(function()
  760. for i=0,2,0.1 do
  761. local part = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,Material = "Neon",Size = Vector3.new(8,8,8),BrickColor = Colours[Random(1,#Colours)],CFrame = hitbox.CFrame})
  762. local bmesh = Create("BlockMesh",part,"Mesh",{})
  763. local ring = Create("Part",Char,"Effect",{Anchored = true,CanCollide = false,CFrame = hitbox.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360))),BrickColor = Colours[Random(1,#Colours)]})
  764. local mesh = Create("SpecialMesh",ring,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=3270017",Scale = Vector3.new(16,16,16)})
  765. TweenService:Create(ring,TweenInfo.new(1),{Transparency = 1}):Play()
  766. TweenService:Create(mesh,TweenInfo.new(1),{Scale = Vector3.new(50,50,50)}):Play()
  767. game:GetService("Debris"):AddItem(ring,0.9)
  768. TweenService:Create(part,TweenInfo.new(1),{Transparency = 1}):Play()
  769. TweenService:Create(bmesh,TweenInfo.new(1),{Scale = Vector3.new(6,6,6)}):Play()
  770. game:GetService("Debris"):AddItem(part,0.9)
  771. coroutine.resume(coroutine.create(function()
  772. for i=0,1,0.01 do
  773. part.CFrame = hitbox.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  774. ring.CFrame = hitbox.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  775. wait()
  776. end
  777. end))
  778. wait()
  779. end
  780. hitbox:Destroy()
  781. end))
  782. for i=1,0,-0.1 do
  783. Torso.Transparency = i
  784. LArm.Transparency = i
  785. RArm.Transparency = i
  786. LLeg.Transparency = i
  787. RLeg.Transparency = i
  788. Head.Transparency = i
  789. FistAura1.Enabled = true
  790. FistAura2.Enabled = true
  791. Tl.Visible = true
  792. Head.face.Transparency = i
  793. wait()
  794. end
  795. BodyPosition.Parent = HRoot
  796. BodyVel.Parent = nil
  797. Attacking = false
  798. end)
  799. repeat
  800. spawn(function()
  801. local effect = Create("Part",Char,"Effect",{Anchored = true,Material = "Neon",CanCollide = false,BrickColor = Colours[Random(1,#Colours)],Size = Vector3.new(8,8,8),CFrame = HRoot.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))})
  802. local mesh = Create("BlockMesh",effect,"Mesh",{})
  803. game:GetService("Debris"):AddItem(effect,1)
  804. TweenService:Create(mesh,TweenInfo.new(1),{Scale = Vector3.new(2,2,2)}):Play()
  805. TweenService:Create(effect,TweenInfo.new(1),{Transparency = 1}):Play()
  806. effect.CFrame = HRoot.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  807. end)
  808. BodyVel.Velocity = workspace.CurrentCamera.CFrame.lookVector * 100
  809. game:GetService("RunService").RenderStepped:wait()
  810. until not createEffect
  811. end)
  812. end
  813. end
  814. if key == Enum.KeyCode.L then
  815. Walkspeed = 0
  816. Attacking = true
  817. if Mode == "Normal" then
  818. Mode = "Power"
  819. Colours= {BrickColor.new("Black"),BrickColor.new("Crimson")}
  820. local Switching = true
  821. coroutine.resume(coroutine.create(function()
  822. repeat
  823. local ball = Create("Part",workspace,"Ball",{Shape = "Ball",Size = Vector3.new(4,4,4),Anchored = true,CanCollide = false,CFrame = HRoot.CFrame,Material = "Neon",BrickColor = Colours[Random(1,#Colours)]})
  824. game:GetService("Debris"):AddItem(ball,1)
  825. coroutine.resume(coroutine.create(function()
  826. for i=0,1,0.1 do
  827. ball.Size = ball.Size:lerp(Vector3.new(10,10,10),0.5)
  828. ball.CFrame = HRoot.CFrame
  829. ball.Transparency = i
  830. wait()
  831. end
  832. ball:Destroy()
  833. end))
  834. wait()
  835. until not Switching
  836. end))
  837. local ball = Create("Part",Char,"Ball",{Transparency=1,Shape = "Ball",Size = Vector3.new(4,4,4),Anchored = true,CanCollide = false,CFrame = HRoot.CFrame,Material = "Neon",BrickColor = BrickColor.new("Black")})
  838. for i=0,1,0.1 do
  839. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  840. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  841. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  842. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  843. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-40),Rad(0),Rad(40)),i)
  844. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-40),Rad(0),Rad(-40)),i)
  845. wait()
  846. end
  847. Switching = false
  848. ball.Transparency = 0
  849. for i=0,1,0.1 do
  850. ball.Size = ball.Size:lerp(Vector3.new(14,14,14),i)
  851. ball.CFrame = HRoot.CFrame
  852. ball.Transparency = i
  853. wait()
  854. end
  855. ball:Destroy()
  856. FistAura1.Enabled = true
  857. FistAura2.Enabled = true
  858. BodyPosition.Position = HRoot.Position + Vector3.new(0,2,0)
  859. BodyPosition.Parent = HRoot
  860. Walkspeed = 32
  861. else
  862. Mode = "Normal"
  863. Colours= {BrickColor.new("Black"),BrickColor.new("Royal purple")}
  864. local Switching = true
  865. coroutine.resume(coroutine.create(function()
  866. repeat
  867. local ball = Create("Part",workspace,"Ball",{Shape = "Ball",Size = Vector3.new(4,4,4),Anchored = true,CanCollide = false,CFrame = HRoot.CFrame,Material = "Neon",BrickColor = Colours[Random(1,#Colours)]})
  868. game:GetService("Debris"):AddItem(ball,1)
  869. coroutine.resume(coroutine.create(function()
  870. for i=0,1,0.1 do
  871. ball.Size = ball.Size:lerp(Vector3.new(10,10,10),0.5)
  872. ball.CFrame = HRoot.CFrame
  873. ball.Transparency = i
  874. wait()
  875. end
  876. ball:Destroy()
  877. end))
  878. wait()
  879. until not Switching
  880. end))
  881. local ball = Create("Part",Char,"Ball",{Transparency=1,Shape = "Ball",Size = Vector3.new(4,4,4),Anchored = true,CanCollide = false,CFrame = HRoot.CFrame,Material = "Neon",BrickColor = BrickColor.new("Black")})
  882. for i=0,1,0.1 do
  883. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  884. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(10)),i)
  885. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(-10)),i)
  886. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-10),Rad(0),Rad(0)),i)
  887. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-40),Rad(0),Rad(40)),i)
  888. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-40),Rad(0),Rad(-40)),i)
  889. wait()
  890. end
  891. Switching = false
  892. ball.Transparency = 0
  893. for i=0,1,0.1 do
  894. local cf = ball.CFrame
  895. ball.Size = ball.Size:lerp(Vector3.new(14,14,14),i)
  896. ball.CFrame = cf
  897. ball.Transparency = i
  898. wait()
  899. end
  900. ball:Destroy()
  901. FistAura1.Enabled = false
  902. FistAura2.Enabled = false
  903. BodyPosition.Parent = nil
  904. Walkspeed = 16
  905. end
  906. Attacking = false
  907. elseif key == Enum.KeyCode.K then
  908. Attacking = true
  909. for i=0,1,0.1 do
  910. Torso.Transparency = i
  911. LArm.Transparency = i
  912. RArm.Transparency = i
  913. LLeg.Transparency = i
  914. RLeg.Transparency = i
  915. Head.Transparency = i
  916. wait()
  917. end
  918. Char:MoveTo(Mouse.Hit.p + Vector3.new(0,2,0))
  919. --Torso.CFrame = CFrame.new(Mouse.Hit.p)
  920. for i=1,0,-0.1 do
  921. Torso.Transparency = i
  922. LArm.Transparency = i
  923. RArm.Transparency = i
  924. LLeg.Transparency = i
  925. RLeg.Transparency = i
  926. Head.Transparency = i
  927. wait()
  928. end
  929. Attacking = false
  930. end
  931. end
  932. end
  933. function keyUp(key)
  934.  
  935. end
  936. UserInputService.TextBoxFocused:connect(function()
  937. Typing = true
  938. end)
  939. UserInputService.TextBoxFocusReleased:connect(function()
  940. Typing = false
  941. end)
  942. if UserInputService.KeyboardEnabled and UserInputService.MouseEnabled then
  943. UserInputService.InputBegan:connect(function(inpType)
  944. if inpType.KeyCode ~= Enum.KeyCode.Unknown then
  945. if not Typing then
  946. keyDown(inpType.KeyCode)
  947. end
  948. end
  949. end)
  950. UserInputService.InputEnded:connect(function(inpType)
  951. if inpType ~= Enum.KeyCode.Unknown then
  952. if not Typing then
  953. keyUp(inpType.KeyCode)
  954. end
  955. end
  956. end)
  957. end
  958. game:GetService("RunService").RenderStepped:connect(function(step)
  959. Human.WalkSpeed = Walkspeed
  960. Human.MaxHealth = math.huge
  961. Human.Health = Human.MaxHealth
  962. if not Attacking then
  963. if (Torso.Velocity).magnitude < 2 then
  964. Anim = "Idle"
  965. elseif (Torso.Velocity).magnitude < 20 then
  966. Anim = "Walk"
  967. elseif (Torso.Velocity).magnitude > 20 then
  968. Anim = "Run"
  969. end
  970. if Anim == "Idle" then
  971. if Mode == "Normal" then
  972. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(0),Rad(0)),0.2)
  973. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-5),Rad(0),-Rad(2 * Sin(tick()/1.5))),0.2)
  974. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-5),Rad(0),Rad(2 * Sin(tick()/1.5))),0.2)
  975. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-5),Rad(0),Rad(0)) * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(0),Rad(0)),0.2)
  976. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-5),Rad(0),Rad(0)) * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(0),Rad(0)),0.2)
  977. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(5),Rad(0)),0.2)
  978. else
  979. Hrj.C0 = Hrj.C0:lerp(Hrjcf,0.2)
  980. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(0),Rad(0)),0.2)
  981. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(0),Rad(0)),0.2)
  982. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(2 * Sin(tick()/1.5)),Rad(0),Rad(0)),0.2)
  983. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(-8),Rad(0),Rad(0)),0.2)
  984. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(-8),Rad(0),Rad(0)),0.2)
  985. end
  986. elseif Anim == "Walk" then
  987. if Mode == "Normal" then
  988. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(0),Rad(0),Rad(10 * Sin(tick()*4))),0.5)
  989. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(0),Rad(0),Rad(10 * Sin(tick()*4))),0.5)
  990. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(0),Rad(0),Rad(10 * Sin(tick()*4))),0.5)
  991. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-5),Rad(0),Rad(10 * Sin(tick()*4))),0.5)
  992. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-5),Rad(0),Rad(10 * Sin(tick()*4))),0.5)
  993. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(0),Rad(10 * Sin(tick()*4)),Rad(0)),0.5)
  994. end
  995. elseif Anim == "Run" then
  996. if Mode == "Power" then
  997. Hrj.C0 = Hrj.C0:lerp(Hrjcf * CFrame.Angles(Rad(20),Rad(0),Rad(0)),0.5)
  998. LShold.C0 = LShold.C0:lerp(Lscf * CFrame.Angles(Rad(-10),Rad(0),Rad(20)),0.5)
  999. RShold.C0 = RShold.C0:lerp(Rscf * CFrame.Angles(Rad(-10),Rad(0),Rad(-20)),0.5)
  1000. LHip.C0 = LHip.C0:lerp(Lhcf * CFrame.Angles(Rad(0),Rad(0),Rad(10)),0.5)
  1001. RHip.C0 = RHip.C0:lerp(Rhcf * CFrame.Angles(Rad(0),Rad(0),Rad(-10)),0.5)
  1002. Neck.C0 = Neck.C0:lerp(Ncf * CFrame.Angles(Rad(-20),Rad(0),Rad(0)),0.5)
  1003. end
  1004. end
  1005. end
  1006. end)
  1007. spawn(function()
  1008. while game:GetService("RunService").RenderStepped:wait() do
  1009. if Mode == "Power" and Torso.Transparency ~= 1 then
  1010. local effect1 = Create("Part",Char,"Effect",{Size = Vector3.new(LLeg.Size.Z,LLeg.Size.Y/2,LLeg.Size.Z),Anchored = true,CanCollide = false,Material = "Neon",Transparency = 0.3,BrickColor = Colours[Random(1,#Colours)],CFrame = LLeg.CFrame * CFrame.new(0,-LLeg.Size.Y/2,0)})
  1011. local effect2 = Create("Part",Char,"Effect",{Size = Vector3.new(RLeg.Size.Z,RLeg.Size.Y/2,RLeg.Size.Z),Anchored = true,CanCollide = false,Material = "Neon",Transparency = 0.3,BrickColor = Colours[Random(1,#Colours)],CFrame = RLeg.CFrame * CFrame.new(0,-RLeg.Size.Y/2,0)})
  1012. effect1.CFrame = effect1.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  1013. effect2.CFrame = effect2.CFrame * CFrame.Angles(Rad(Random(-360,360)),Rad(Random(-360,360)),Rad(Random(-360,360)))
  1014. game:GetService("Debris"):AddItem(effect1,0.05)
  1015. game:GetService("Debris"):AddItem(effect2,0.05)
  1016. end
  1017. end
  1018. end)
Advertisement
Add Comment
Please, Sign In to add comment