Advertisement
Telamun

[WIP] Ben Drowned Script -ROBLOX-

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