sawgamer1

Untitled

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