Advertisement
Rocco_T_

Untitled

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