Advertisement
dylan12312

Untitled

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