Hugo1234cool

Untitled

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