Advertisement
lafur

Untitled

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