EmeraldIT

Fire dragon slayer proteus edit

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