chromeJ

Lightning Powers??

Jun 22nd, 2021
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Scripted By coolallball
  2. wait()
  3. if game.Players.LocalPlayer.Character.Animate.Disabled==false then
  4. game.Players.LocalPlayer.Character.Animate.Disabled=true
  5. end
  6. if game.Players.LocalPlayer.Character.Humanoid.Animator then
  7. game.Players.LocalPlayer.Character.Humanoid.Animator:Destroy()
  8. end
  9. wait()
  10. local Player=game.Players.LocalPlayer
  11. repeat wait()
  12. until Player
  13. local Char=Player.Character
  14. repeat wait()
  15. until Char
  16. local CurrentEffects={}
  17. local CurrentDamages={}
  18. local Human=Char.Humanoid
  19. local LArm=Char["Left Arm"]
  20. local RArm=Char["Right Arm"]
  21. local LLeg=Char["Left Leg"]
  22. local RLeg=Char["Right Leg"]
  23. local Torso=Char.Torso
  24. local RS=Torso["Right Shoulder"]
  25. local LS=Torso["Left Shoulder"]
  26. local RH=Torso["Right Hip"]
  27. local LH=Torso["Left Hip"]
  28. local Head=Char.Head
  29. local Neck=Torso.Neck
  30. local RootPart=Char.HumanoidRootPart
  31. local RootJoint=RootPart.RootJoint
  32. local equipped=false
  33. local Debounce=false
  34. local Anim="Idle"
  35. local chat = game:GetService("Chat")
  36. local Mouse=Player:GetMouse()
  37. local Lighting=game.Lighting
  38. local cam=workspace.CurrentCamera
  39. local cf=CFrame.new
  40. local v3=Vector3.new
  41. local c3=Color3.new
  42. local it=Instance.new
  43. local angles=CFrame.Angles
  44. local rad=math.rad
  45. local ran=math.random
  46. local huge=math.huge
  47. local attacking=false
  48. local attacktype=1
  49. local Sheathed=true
  50. Tool=script.Parent
  51. Equipped=false
  52. op=false
  53. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  54. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  55. LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  56. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  57. RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  58. ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59. RHC01=cf(1, -1, 0, 0, -0.087155737, 0.99619472, 0, 0.99619472, 0.087155737, -1, 0, 0)
  60. LHC01=cf(-1, -1, 0, 0, 0.087155737, -0.99619472, 0, 0.99619472, 0.087155737, 1, 0, 0)
  61. RSC01=cf(1, 0.5, 0, 0, -0.173648179, 0.98480773, 0, 0.98480773, 0.173648179, -1, 0, 0)
  62. LSC01=cf(-1, 0.5, 0, 0, 0.173648179, -0.98480773, 0, 0.98480773, 0.173648179, 1, 0, 0)
  63. ROOTC01=cf(0, 0, 0, -0.939692616, 0.342020124, 0, 0, 0, 1, 0.342020124, 0.939692616, 0)
  64. NECKC01=cf(0, 1, 0, -0.939692616, -0.342020124, 0, -0.0593911707, 0.163175911, 0.98480773, -0.336824059, 0.925416529, -0.173648179)
  65. Joints={RH.C0,LH.C0,RS.C0,LS.C0,RootJoint.C0,Neck.C0}
  66. --why do people label stuff with comments, y.
  67. r=game:service'RunService'.RenderStepped
  68. clerp=function(a,b,t)
  69. return a:lerp(b,t)
  70. end
  71. Combo=0
  72. TotalDamage=0
  73. Damage=0
  74. ComboMoves={}
  75. Inputs={}
  76. CurrentTarget=""
  77. Inp=Player:GetChildren()
  78. LastAnim=""
  79.  
  80. print(cam.CameraType)
  81. Human.WalkSpeed=30
  82. Human.JumpPower=50
  83.  
  84. for i=1,#Inp do
  85. if Inp[i]:IsA('Sound') then Inp[i]:Remove() end
  86. end
  87.  
  88. --Functions
  89.  
  90. function FindDist(a,b)
  91. return math.sqrt((b.p.x-a.p.x)^2+(b.p.y-a.p.y)^2+(b.p.z-a.p.z)^2)
  92. end
  93.  
  94. Round=function(Num)
  95. local mid=math.ceil(Num)
  96. mid=mid-.5
  97. if Num>=mid then
  98. return math.ceil(Num)
  99. else return math.floor(Num)
  100. end
  101. end
  102.  
  103. SFX=function(id,name,vol)
  104. local s=it("Sound",Sounds)
  105. s.SoundId=id
  106. s.Name=name
  107. s.Volume=vol
  108. end
  109.  
  110. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  111. local gui = Instance.new(GuiType)
  112. gui.Parent = parent
  113. gui.Text = text
  114. gui.BackgroundTransparency = backtrans
  115. gui.BackgroundColor3 = backcol
  116. gui.SizeConstraint = "RelativeXY"
  117. gui.TextXAlignment = "Center"
  118. gui.TextYAlignment = "Center"
  119. gui.Position = pos
  120. gui.Size = size
  121. gui.Font = "Cartoon"
  122. gui.FontSize = "Size60"
  123. gui.TextWrapped = false
  124. gui.TextStrokeTransparency = 0
  125. gui.TextColor = BrickColor.new("Pastal white")
  126. return gui
  127. end
  128.  
  129. Torso.Anchored=false
  130.  
  131.  
  132.  
  133. function rayCast(Position, Direction, Range, Ignore)
  134. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  135. end
  136. --Damage function
  137. function Damage(part,min,max,range,font)
  138. for i,v in pairs(workspace:GetChildren()) do
  139. if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v.ClassName=="Model" and FindDist(part,v.Torso.CFrame)<=range and v.Name~= Player.Name then
  140. local dmg=Round(math.random(min,max))
  141. local bil=Instance.new("BillboardGui",v:FindFirstChild("Torso"))
  142. bil.Adornee=v:FindFirstChild("Torso")
  143. bil.Size=UDim2.new(0, 500, 0, 500)
  144. bil.ExtentsOffset=Vector3.new(ran(-3,3),ran(-3,3),ran(-3,3))
  145. local tx=Instance.new("TextLabel",bil)
  146. tx.Text=""..dmg..""
  147. tx.Font="Cartoon"
  148. tx.FontSize="Size60"
  149. tx.TextWrapped = false
  150. tx.TextStrokeTransparency = 0
  151. tx.TextColor = BrickColor.new("Pastel white")
  152. tx.TextXAlignment = "Center"
  153. tx.TextYAlignment = "Center"
  154. tx.TextWrapped = false
  155. tx.SizeConstraint = "RelativeXY"
  156. v:FindFirstChild('Humanoid'):TakeDamage(math.random(min,max))
  157. spawn(function()
  158. for ii=1,10 do r:wait()
  159. tx.TextTransparency=ii/10 end
  160. bil:Destroy() end)
  161. end end end
  162.  
  163. sine=1
  164. change=1
  165.  
  166. --Detect State
  167.  
  168. detect_state = function()
  169. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  170. local velocity = RootPart.Velocity.y
  171. sine = sine + change
  172. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  173. if attacking==false then
  174. if RootPart.Velocity.y > 1 and hit == nil and attacking==false then
  175. Anim = "Jump"--print(Anim)
  176. Neck.C0=clerp(Neck.C0,necko*angles(rad(-15),rad(0),rad(0)),.3)
  177. RH.C0=clerp(RH.C0,RHC0*angles(rad(-10),rad(0),rad(0)),.3)
  178. LH.C0=clerp(LH.C0,LHC0*angles(rad(-10),rad(0),rad(0)),.3)
  179. RS.C0=clerp(RS.C0,RSC0*angles(rad(-20),rad(0),rad(-20)),.3)
  180. LS.C0=clerp(LS.C0,LSC0*angles(rad(-20),rad(0),rad(20)),.3)
  181. elseif RootPart.Velocity.y < -1 and hit == nil and attacking==false then
  182. Anim = "Fall"--print(Anim)
  183. Neck.C0=clerp(Neck.C0,necko*angles(rad(35),rad(0),rad(0)),.3)
  184. RH.C0=clerp(RH.C0,RHC01*angles(rad(0),rad(0),rad(-5)),.3)
  185. LH.C0=clerp(LH.C0,LHC01*angles(rad(0),rad(0),rad(20)),.3)
  186. RS.C0=clerp(RS.C0,RSC0*angles(rad(-100),rad(0),rad(0)),.3)
  187. LS.C0=clerp(LS.C0,LSC0*angles(rad(-100),rad(0),rad(0)),.3)
  188. LastAnim="Fall"
  189. elseif Torsovelocity < 1 and hit ~= nil and Equipped==false and attacking==false then
  190. Anim = "Idle"--print(Anim)
  191. change=1
  192. if LastAnim~="Idle" then LastAnim="Idle"
  193. for i=1,16 do r:wait()
  194. RS.C0=RS.C0:lerp(RSC01,.3)
  195. LS.C0=LS.C0:lerp(LSC01,.3)
  196. RH.C0=RH.C0:lerp(RHC01,.3)
  197. LH.C0=LH.C0:lerp(LHC01,.3)
  198. RootJoint.C0=RootJoint.C0:lerp(ROOTC01,.3)
  199. Neck.C0=Neck.C0:lerp(NECKC01,.3)
  200. end
  201. end
  202. r:wait() RS.C0=RS.C0*cf(0,(math.cos(sine/15))/200,0)*angles(0,(math.cos(sine/-15))/-300,0)
  203. LS.C0=LS.C0*cf(0,(math.cos(sine/15))/200,0)*angles(0,(math.cos(sine/15))/300,0)
  204. Neck.C0=Neck.C0*angles((math.cos(sine/15))/300,0,0)
  205. RH.C0=RH.C0*cf((math.cos(sine/-15))/500,0,0)
  206. LH.C0=LH.C0*cf((math.cos(sine/-15))/500,0,0)
  207. RootJoint.C0=RootJoint.C0*cf(0,0,(math.cos(sine/15))/500)
  208. elseif Torsovelocity > 2 and hit ~= nil and attacking==false then
  209. Anim = "Walk" --print(Anim)
  210. r:wait()
  211. change=3
  212. Neck.C0=clerp(Neck.C0,necko*angles(rad(0),0,0),.3)
  213. RootJoint.C0 = clerp(RootJoint.C0, ROOTC0 * cf(0, 0, 0) * angles(math.rad(10 + 1 * math.cos(sine / 15)), math.rad(0), 0), .3)
  214. RH.C0 = clerp(RH.C0, cf(0, 0, 0 - 0.5 * math.cos(sine / 10) / 2) * RHC0 * angles(math.rad(-3), math.rad(10), math.rad(30 * math.cos(sine / 10))), .3)
  215. LH.C0 = clerp(LH.C0, cf(0, 0, 0 + 0.5 * math.cos(sine / 10) / 2) * LHC0 * angles(math.rad(-3), math.rad(10), math.rad(30 * math.cos(sine / 10))), .3)
  216. RS.C0 = clerp(RS.C0, RSC0 * angles(math.rad(-10), math.rad(10), math.rad(-20)),.3)
  217. LS.C0 = clerp(LS.C0, LSC0 * angles(math.rad(-10), math.rad(10), math.rad(20)),.3)
  218. LastAnim="Walk"
  219. end
  220. end
  221. end
  222.  
  223. --Folders+More functions
  224.  
  225. Effects=Instance.new("Folder",Char)
  226. Effects.Name="Effects"
  227. Welds=Instance.new("Folder",Char)
  228. Welds.Name="Welds"
  229. Sounds=Instance.new("Folder",Char)
  230. Sounds.Name="Sounds"
  231. part=function(parent,anchored,cancollide,size,cframe,col3,material,trans)
  232. local p=it("Part",parent)
  233. p.Anchored=anchored
  234. p.CanCollide=cancollide
  235. p.Size=size
  236. p.CFrame=cframe
  237. p.Color=col3
  238. p.Material=material
  239. p.Transparency=trans
  240. return p
  241. end
  242.  
  243. mesh=function(parent,ttype,scale)
  244. local m=it("SpecialMesh",parent)
  245. m.MeshType=ttype
  246. m.Scale=scale
  247. return m
  248. end
  249.  
  250. spmesh=function(parent,id,scale)
  251. local m=it("SpecialMesh",parent)
  252. m.MeshId=id
  253. m.Scale=scale
  254. return m
  255. end
  256.  
  257. local Smooth=function(Table)
  258. for _, v in pairs(Table) do
  259. if v.ClassName=="Part" then
  260. v.TopSurface,v.BottomSurface,v.BackSurface,v.FrontSurface,v.LeftSurface,v.RightSurface=10,10,10,10,10,10 end end
  261. end
  262.  
  263. local function PowerGlow(Parent,Cframe,Col1,Col2,Material,Size)spawn(function()
  264. local Colours = {BrickColor.new(Col1),BrickColor.new(Col2)}
  265. local Power1 = Instance.new("Part", Parent)
  266. Power1.CFrame = Cframe
  267. Power1.Size = Vector3.new(0,0,0)
  268. Power1.TopSurface = 0
  269. Power1.BottomSurface = 0
  270. Power1.CanCollide = false
  271. Power1.Anchored = true
  272. Power1.Material = Material
  273. Power1.BrickColor = Colours[math.random(1,#Colours)]
  274. local m = Instance.new("SpecialMesh", Power1)
  275. m.MeshType = "Sphere"
  276. m.Scale = Vector3.new(Size*.3,Size*.3,Size*.3)
  277. local a = Size/30
  278. local b = Size/30
  279. local c = (Size/3)*13.25999999
  280. Power1.CFrame = Power1.CFrame*CFrame.Angles(rad(90),0,0)
  281. for i = 1,10 do
  282. m.Scale = m.Scale+Vector3.new(a,b,c/2)
  283. Power1.Transparency = i/10
  284. game:service'RunService'.RenderStepped:wait()
  285. end
  286. m:Destroy()
  287. Power1:Destroy()end)
  288. end
  289.  
  290. Lightning = function(Start,End,Times,Offset,Color,Thickness)
  291.  
  292. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  293.  
  294. for i=1,Times do
  295.  
  296. local li = Instance.new("Part",Char) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true
  297.  
  298. li.Material = "Neon"
  299.  
  300. li:BreakJoints()
  301.  
  302. li.Transparency = 0 li.BrickColor = Color
  303.  
  304. li.formFactor = "Custom" li.CanCollide = false
  305.  
  306. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  307.  
  308. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  309.  
  310. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  311.  
  312. if Times == i then
  313.  
  314. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  315.  
  316. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  317.  
  318. else
  319.  
  320. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  321.  
  322. end
  323.  
  324. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p spawn(function() wait() li:Destroy() end)
  325.  
  326.  
  327.  
  328. end
  329.  
  330. end
  331.  
  332. --Feet Welds
  333.  
  334. RightFoot=part(Char,false,false,v3(0,0,0),cf(0,0,0),c3(-1,0,0),"Neon",1)
  335. LeftFoot=part(Char,false,false,v3(0,0,0),cf(0,0,0),c3(-1,0,0),"Neon",1)
  336. RF=it("Weld",Welds)
  337. RF.Name="RF"
  338. RF.Part0=RightFoot
  339. RF.Part1=RLeg
  340. RF.C0=RF.C0*cf(0,1,0)
  341. LF=it("Weld",Welds)
  342. LF.Name="LF"
  343. LF.Part0=LeftFoot
  344. LF.Part1=LLeg
  345. LF.C0=LF.C0*cf(0,1,0)
  346.  
  347. --Click Combo
  348.  
  349. --[[Mouse.Button1Down:connect(function()
  350. if attacking== false and attacktype == 1 and Equipped==false then print"RAWR"
  351. attackone()
  352. attacktype = 2
  353. elseif attacking== false and attacktype == 1 and Equipped==true then print"Swish"
  354. attackfour()
  355. attacktype=2
  356. else
  357. if attacking == false and attacktype == 2 and Equipped==false then print"XD"
  358. attacktwo()
  359. attacktype = 3
  360. elseif attacking == false and attacktype == 2 and Equipped==true then print"Swash"
  361. attackfive()
  362. attacktype=3
  363. else
  364. if attacking == false and attacktype == 3 and Equipped==false then print"DAI"
  365. attackthree()
  366. attacktype = 1
  367. elseif attacking == false and attacktype == 3 and Equipped==true then print"STEB"
  368. attacksix()
  369. attacktype=1
  370. end
  371. end
  372. end
  373. end)]]
  374.  
  375. --Sounds
  376.  
  377. local Draw=Instance.new("Sound",Sounds)
  378. Draw.Name="Draw"
  379. Draw.SoundId="rbxassetid://608618332"
  380. Draw.Volume=1.1
  381. local poo=it('Sound',Sounds)
  382. poo.Name="JumpEffect"
  383. poo.SoundId="rbxassetid://231917987"
  384. poo.Volume=.3
  385. SFX("rbxassetid://320557487","BasicAttackOne",1)
  386.  
  387. --Key Input Detection
  388.  
  389. Input=""
  390.  
  391. Mouse.KeyDown:connect(function(key) Input=Input..key wait() Input ="" end)
  392. spawn(function()while r:wait() do
  393. if Input=="z" and attacking==false then print(Input)
  394. Input ="" Z()Input=""
  395. elseif Input=="x" and attacking==false then print(Input)
  396. Input="" X()Input=""
  397. elseif Input=="c" and attacking==false then print(Input)
  398. Input=""C()Input=""
  399. elseif Input=="v" and attacking==false then print(Input)
  400. Input=""V()Input=""
  401. end
  402. end end)
  403.  
  404. --Moves
  405.  
  406. Z=function()
  407. RH.C0=clerp(RH.C0,RHC0*angles(rad(-5),rad(0),rad(0)),1)
  408. LH.C0=clerp(LH.C0,LHC0*angles(rad(-5),rad(0),rad(0)),1)
  409. RS.C0=clerp(RS.C0,RSC0*angles(rad(-10),rad(0),rad(0)),1)
  410. LS.C0=clerp(LS.C0,LSC0*angles(rad(-10),rad(0),rad(0)),1)
  411. Neck.C0=clerp(Neck.C0,necko*angles(rad(10),rad(0),rad(-20)),1)
  412. RootJoint.C0=RootJoint.C0:lerp(ROOTC0*angles(rad(0),rad(0),rad(20)),1)
  413.  
  414. print(RH.C0)
  415. print(LH.C0)
  416. print(RS.C0)
  417. print(LS.C0)
  418. print(RootJoint.C0)
  419. print(Neck.C0)
  420. end
  421.  
  422. X=function()
  423. attacking=true
  424. math.randomseed(tick())
  425. math.random()
  426. local ids={"rbxassetid://327264499","rbxassetid://327264897","rbxassetid://331196652","rbxassetid://298947115"}
  427. local Li = Instance.new("BillboardGui",Char)
  428. Li.Size = UDim2.new(0,100,0,40)
  429. Li.StudsOffset = Vector3.new(0,3,0)
  430. Li.Adornee = Torso
  431. Li.Size=UDim2.new(5,0,5,0)
  432. local img=it("ImageLabel",Li)
  433. img.Image=ids[math.random(1,#ids)]
  434. img.BackgroundTransparency=1
  435. img.Size=UDim2.new(1,0,1,0)
  436. for i=1,200000000000000 do r:wait()
  437. img.Image=ids[math.random(1,#ids)]
  438. img.Rotation=math.random(1,360)
  439. end
  440. attacking=false
  441. end
  442. li=function()
  443. local ids={"rbxassetid://327264499","rbxassetid://327264897","rbxassetid://331196652","rbxassetid://298947115"}
  444. local Li = Instance.new("BillboardGui",Torso)
  445. Li.Size = UDim2.new(0,300,0,120)
  446. Li.StudsOffset = Vector3.new(0,0,0)
  447. Li.Adornee = Torso
  448. Li.Size=UDim2.new(5,0,5,0)
  449. local img=it("ImageLabel",Li)
  450. img.Image=ids[math.random(1,#ids)]
  451. img.BackgroundTransparency=1
  452. img.Size=UDim2.new(1,0,1,0) spawn(function()
  453. while op==true do r:wait()
  454. img.Image=ids[math.random(1,#ids)]
  455. img.Rotation=math.random(1,360)
  456. end
  457. Li:Destroy()
  458. end)
  459. end
  460. C=function()
  461. attacking=true
  462. local bv=it("BodyVelocity")
  463. bv.maxForce=v3(huge,huge,huge)
  464.  
  465. for i=1,40 do r:wait()
  466. RootJoint.C0=clerp(RootJoint.C0,ROOTC0*angles(0,0,rad(-90)),.3)
  467. Neck.C0=clerp(Neck.C0,necko*angles(0,0,rad(90)),.3)
  468. RS.C0=clerp(RS.C0,RSC0*angles(rad(-90),0,0),.3)
  469. end
  470. bv.Velocity=((Head.CFrame*angles(0,0,rad(90)).p-Head.CFrame*angles(0,0,rad(90))*cf(0,0,-1).p)*-1).unit*80
  471. local ball=part(Effects,true,false,v3(.2,.2,.2),RArm.CFrame*cf(0,-1.5,0),BrickColor.new('Cyan').Color,"Neon",0)
  472. local bm=mesh(ball,"Sphere",v3(1,1,1))
  473. ball.Shape="Ball"
  474. for i=1,50 do r:wait()
  475. bm.Scale=bm.Scale+v3(.1,.1,.1)
  476. PowerGlow(Effects,RArm.CFrame*cf(0,-1.5,0)*angles(ran(-math.pi,math.pi),ran(-math.pi,math.pi),ran(-math.pi,math.pi)),BrickColor.new('Cyan').Color,'Pastel white',"Neon",i/20)
  477. end
  478. bv.Parent=Torso
  479. spawn(function()
  480. repeat r:wait()
  481. ball.CFrame=RArm.CFrame*cf(0,-1.5,0)
  482. until attacking==false
  483. ball:Destroy()
  484. end)
  485. for i=1,30 do r:wait()
  486. RootJoint.C0=clerp(RootJoint.C0,ROOTC0*angles(rad(45),0,0)*cf(0,0,-.6),.3)
  487. Neck.C0=clerp(Neck.C0,necko*angles(rad(5),0,0),.3)
  488. RS.C0=clerp(RS.C0,RSC0*angles(0,0,rad(90))*cf(.3,0,0),.3)
  489. RH.C0=clerp(RH.C0,RHC0*angles(0,0,rad(-45)),.3)
  490. LH.C0=clerp(LH.C0,LHC0*angles(0,0,rad(-45)),.3)
  491. end
  492. bv:Destroy()
  493. wait(.455)
  494. local fg=Ray.new(RArm.Position+v3(0,-1.5,0),v3(0,-5,0))
  495. local par,pos=workspace:FindPartOnRayWithIgnoreList(fg,Char:children(),false,true)
  496. if par and pos then
  497. local bem=part(Effects,true,false,v3(1,1,1),cf(pos)*angles(0,0,rad(-90)),BrickColor.new("Cyan").Color,"Neon",0)
  498. local beem=mesh(bem,"Cylinder",v3(400,2,400))
  499. local cirs={}
  500. for i=1,3 do r:wait()
  501. local c=part(Effects,true,false,v3(0,0,0),cf(pos)*angles(rad(-90),0,0),BrickColor.new("Cyan").Color,"Neon",0)
  502. local cm=spmesh(c,"rbxassetid://3270017",v3((i*8)+5,(i*8)+5,(i*2)+18))
  503. table.insert(cirs,c)
  504.  
  505. end
  506. for i=1,60 do r:wait()
  507. beem.Scale=beem.Scale+v3(.5,.5,.5)
  508. bem.Transparency=i/180
  509. for _,v in pairs(cirs) do
  510. spawn(function()
  511. v.Transparency=i/60
  512. v.Mesh.Scale=v.Mesh.Scale+v3(.5,.5,.1)
  513. end)
  514. end
  515. end
  516. bem:Destroy()
  517. for _,v in pairs(cirs) do
  518. v:Destroy()
  519. end
  520. end
  521. attacking=false
  522. end
  523. function mhands(cframe)
  524. spawn(function()
  525. l=BrickColor.new('Cyan')
  526. local h=part(Effects,true,false,v3(0,0,0),cframe*angles(ran(-10,10),ran(-10,10),ran(-10,10)),l.Color,"Neon",0)
  527. local hm=mesh(h,"Brick",v3(7*3,7*3,7*3))
  528. for i=1,40 do r:wait()
  529. h.Transparency=i/40
  530. end
  531. h:Destroy()
  532. end)
  533. end
  534. function circles(cfr)
  535. spawn(function()
  536. local cir=part(Effects,true,false,v3(0,0,0),cfr,BrickColor.new('Cyan').Color,"Neon",0)
  537. local cm=spmesh(cir,"rbxassetid://3270017",v3(4,4,2))
  538. for i=1,180 do r:wait()
  539. cm.Scale=cm.Scale+v3(2,2,2)
  540. cir.Transparency=i/10
  541. end
  542. cir:Destroy()
  543. end)
  544. end
  545. V=function()
  546. attacking=true
  547. Human.WalkSpeed=0
  548. Human.JumpPower=0
  549. li()
  550. function sw(t) spawn(function()
  551. local c=part(Effects,true,false,v3(0,0,0),Torso.CFrame*cf(0,-1.3,0),l.Color,"Neon",.9)
  552. local cm=spmesh(c,"rbxassetid://20329976",v3(6,2,6))
  553. for i=1,100 do r:wait()
  554. cm.Scale=cm.Scale:Lerp(cm.Scale+Vector3.new(4,-.021,4),1)
  555. if t==true then
  556. c.CFrame=c.CFrame*angles(0,rad(i),0)
  557. elseif t==false then
  558. c.CFrame=c.CFrame*angles(0,rad(i*-1),0)
  559. end
  560. c.Transparency=.9+i/100
  561. end
  562. c:Destroy() end)
  563. end
  564. for i=1,100 do r:wait()
  565. if i%3==0 then
  566. mhands(RArm.CFrame*cf(0,-1.5,0))
  567. mhands(LArm.CFrame*cf(0,-1.5,0))
  568. sw(true)
  569. end
  570. if i%4==0 then
  571. Lightning(RArm.CFrame*cf(0,-1.5,0).p,RArm.CFrame*cf(0,-30,0).p,7,3,BrickColor.new('Cyan'),.2)
  572. Lightning(LArm.CFrame*cf(0,-1.5,0).p,LArm.CFrame*cf(0,-30,0).p,7,3,BrickColor.new('Cyan'),.2)
  573. circles(Torso.CFrame*cf(-30,0,0)*angles(0,math.pi/2,0))
  574. circles(Torso.CFrame*cf(30,0,0)*angles(0,math.pi/2,0))
  575. sw(false)
  576. end
  577. Damage(Torso.CFrame,.5,1,30)
  578. PowerGlow(Effects,Torso.CFrame*cf(ran(-10,10),-1.3,ran(-10,10)),BrickColor.new('Cyan').Color,'Pastel white',"Neon",3)
  579. RH.C0=clerp(RH.C0,RHC0*angles(rad(0),rad(0),rad(0))*cf(0,0,0),.3)
  580. LH.C0=clerp(LH.C0,LHC0*angles(rad(0),rad(0),rad(0))*cf(0,0,0),.3)
  581. RS.C0=clerp(RS.C0,RSC0*angles(rad(-90),rad(0),rad(0))*cf(0,0,0),.3)
  582. LS.C0=clerp(LS.C0,LSC0*angles(rad(-90),rad(0),rad(10)),.3)
  583. Neck.C0=clerp(Neck.C0,necko*angles(rad(-15),rad(0),rad(0)),.3)
  584. RootJoint.C0=RootJoint.C0:lerp(ROOTC0*angles(rad(0),rad(0),rad(0)),.3)
  585. end
  586. Lightning(Torso.Position,Torso.Position+v3(0,200,0),18,3,BrickColor.new('Cyan'),4)
  587. local cc=it("ColorCorrectionEffect",game.Lighting)
  588. cc.Brightness=1
  589. local p=part(Effects,true,false,v3(0,0,0),Torso.CFrame,BrickColor.new('Cyan').Color,"Neon",0)
  590. local pm=mesh(p,"Sphere",v3(1,1,1))
  591. spawn(function()
  592. for i=50,1,-1 do r:wait()
  593. cc.Brightness=i/50
  594. end
  595. cc:Destroy()
  596. end)
  597. spawn(function()for c=1,25 do r:wait()
  598. pm.Scale=pm.Scale+v3(3,3,3)
  599. p.Transparency=c/25
  600.  
  601. end
  602. local EyePart=part(Char,false,false,v3(.3,.3,.3),Torso.CFrame,BrickColor.new('Cyan').Color,"Neon",0)
  603. EyePart.Name="EyePart"
  604. EyePart.Shape="Ball"
  605. local EyePart2=EyePart:Clone()
  606. EyePart2.Parent=Char
  607. local EyeWeld=it("Weld",Char)
  608. EyeWeld.Part0=EyePart
  609. EyeWeld.Part1=Head
  610. EyeWeld.C0=EyeWeld.C0*cf(.2,-.25,.578)
  611. local EyeWeld2=it("Weld",Char)
  612. EyeWeld2.Part0=EyePart2
  613. EyeWeld2.Part1=Head
  614. EyeWeld2.C0=EyeWeld2.C0*cf(-.2,-.25,.578)
  615. local EyeSizes={
  616. NumberSequenceKeypoint.new(0,.4,0),
  617. NumberSequenceKeypoint.new(1,0,0)
  618. }
  619. local EyeTrans={
  620. NumberSequenceKeypoint.new(0,0,0),
  621. NumberSequenceKeypoint.new(1,1,0)
  622. }
  623. local PE=it("ParticleEmitter",EyePart)
  624. PE.LightEmission=1
  625. PE.LockedToPart=false
  626. PE.Size=NumberSequence.new(EyeSizes)
  627. PE.Transparency=NumberSequence.new(EyeTrans)
  628. --PE.Acceleration=v3(2,0,0)
  629. PE.Lifetime=NumberRange.new(2,2,2)
  630. PE.Rate=34958349053045
  631. PE.Speed=NumberRange.new(2,2,2)
  632. PE.Texture="rbxassetid://253188606"
  633. local PE2=PE:Clone()
  634. PE2.Parent=EyePart2
  635. while r:wait() do
  636. PE.Acceleration=v3(math.sin(tick()),0,math.sin(tick()))
  637. PE2.Acceleration=v3(math.cos(tick()),0,math.cos(tick()))
  638. end
  639. end)
  640. for i=1,10 do r:wait() spawn(function()
  641. local c=part(Effects,true,false,v3(1,1,1),Head.CFrame,BrickColor.new("Cyan").Color,"Neon",.4)
  642. local c2=part(Effects,true,false,v3(1,1,1),Head.CFrame,BrickColor.new("Cyan").Color,"Neon",.4)
  643. local cm=spmesh(c,"rbxassetid://3270017",v3(1,1,.4))
  644. local cm2=spmesh(c2,"rbxassetid://3270017",v3(1,1,.4))
  645. for ii=1,60 do r:wait()
  646. c.CFrame=c.CFrame*angles(ran(-math.pi,math.pi),ran(-math.pi,math.pi),ran(-math.pi,math.pi))
  647. c2.CFrame=c2.CFrame*angles(ran(-math.pi,math.pi),ran(-math.pi,math.pi),ran(-math.pi,math.pi))
  648. cm.Scale=cm.Scale+v3(4,4,0)
  649. cm2.Scale=cm2.Scale+v3(4,4,0)
  650. c.Transparency=.4+ii/50
  651. c2.Transparency=.4+ii/50
  652. Damage(Torso.CFrame,8,20,35)
  653. end
  654. end) wait()
  655. end
  656. wait(.75)
  657. li()
  658. p:Destroy()
  659. Human.WalkSpeed=20
  660. Human.JumpPower=50
  661. attacking=false
  662. op=true
  663. for _,v in pairs(Effects:GetChildren()) do
  664. v:Destroy()
  665. end
  666. for i=1,40 do r:wait()
  667. if attacking==true then break end
  668. RH.C0=clerp(RH.C0,RHC01,.3)
  669. LH.C0=clerp(LH.C0,LHC01,.3)
  670. RS.C0=clerp(RS.C0,RSC01,.3)
  671. LS.C0=clerp(LS.C0,LSC01,.3)
  672. Neck.C0=clerp(Neck.C0,NECKC01,.3)
  673. RootJoint.C0=clerp(RootJoint.C0,ROOTC01,.3)
  674. end
  675. end
  676.  
  677. spawn(function()
  678. for i=1,huge do r:wait()
  679. if op==true then
  680. if i%5 ==0 then
  681. sw(true)
  682. sw(false)
  683. mhands(RArm.CFrame*cf(0,-1.5,0))
  684. mhands(LArm.CFrame*cf(0,-1.5,0))
  685. end
  686. if i%40==0 then
  687. Lightning(Torso.CFrame*cf(ran(-10,10),ran(-3,10),ran(-10,10)).p,Torso.CFrame*cf(ran(-10,10),ran(-3,10),ran(-10,10)).p,4,3,BrickColor.new('Cyan'),.2)
  688. end
  689. end
  690. end
  691. end)
  692. while r:wait() do detect_state() end
  693.  
RAW Paste Data