Advertisement
MrSlakyx

Fruitus da man

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