Advertisement
memberhero

Rare? Riven Updated Version?

Jan 21st, 2018
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 120.33 KB | None | 0 0
  1. --Riven
  2. math.randomseed(tick())
  3. plr=game:service'Players'.LocalPlayer
  4. ch,char=plr.Character,plr.Character
  5. hum=ch.Humanoid
  6. tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
  7. m,mouse=plr:GetMouse(),plr:GetMouse()
  8. cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
  9. bc=BrickColor.new
  10. head=ch.Head
  11. cam=workspace.CurrentCamera
  12. debris=game.Debris
  13. tool = Instance.new("HopperBin")
  14. tool.Name = "Riven"
  15. tool.Parent = plr.Backpack
  16. rj.C0=cfn()
  17. rj.C1=cfn()
  18.  
  19. lib={}
  20. lib.cone='1033714'
  21. lib.ring="3270017"
  22. lib.yato='579392805'
  23. lib.diamond='9756362'
  24. lib.crown='20329976'
  25. lib.darkmagiccircle='223123319'
  26. rbx='rbxassetid://'
  27.  
  28. for _,v in pairs(lib) do
  29. game:GetService'ContentProvider':Preload('rbxassetid'..v)
  30. end
  31.  
  32. --tb and anti sc
  33. v3 = Vector3.new
  34. cn = CFrame.new
  35. ca2 = CFrame.Angles
  36. mf = math.floor
  37. mran = math.random rn=mran
  38. mrad = math.rad rd=mrad
  39. mdeg = math.deg dg=mdeg
  40. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  41. mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
  42. ud=UDim2.new
  43. bn = BrickColor.new
  44. c3 = Color3.new
  45. --tb and anti sc
  46.  
  47. getSound=function(id)
  48. game:service'ContentProvider':Preload('rbxassetid'..tostring(id))
  49. local s=int("Sound",ch.Head)
  50. s.SoundId='rbxassetid://' .. tostring(id-1)
  51. s.Volume=1
  52. return s
  53. end
  54.  
  55. --declarations
  56.  
  57. --strings
  58. local combostring=[[]]
  59. local attackstring=[[]]
  60.  
  61. --sounds, some by qaeo
  62. blocksound=getSound(260433722)
  63. blocksound.Pitch=1
  64. startsound=getSound(588738950) --260433747
  65. startsound.Pitch=1
  66. endsound=getSound(588736246) --260433769
  67. endsound.Pitch=1
  68. endsound.Volume=1
  69. swsound=getSound(588736970)
  70. --swsound.Pitch=0.8
  71. swexp=getSound(365002939)
  72. swexp.Pitch=1
  73. spexp=getSound(365002939)
  74. spexp.Pitch=1.2
  75. startsound2=getSound(260433769)--260433769
  76. startsound2.Pitch=0.8
  77. startsound3=getSound(260433769)
  78. startsound3.Pitch=0.89
  79. chargesound=getSound(181004944)
  80. chargesound.Pitch=1
  81. basicsound=getSound(588736246)--260433747
  82. basicsound.Pitch=1.2
  83. dodgesound=getSound(177162407)
  84. dodgesound.Pitch=1.4
  85. landsound=getSound(315775190)
  86. rushsound=getSound(134012323)--134012323
  87. swoosh=getSound(231917988)
  88. --swoosh.Pitch=1
  89. swoosh.Volume=1
  90. aerialcharge=getSound(265109959)
  91. aerialcharge.Pitch=1
  92. curse=getSound(231917971)
  93. glass=getSound(130779172)
  94. magictone1=getSound(588738950)
  95. chargedupbeam=getSound(588735946)
  96. chargedupbeam.Volume=1
  97. diamondproj=getSound(231917751)
  98. diamondproj.PlaybackSpeed=5
  99. diamondbreak=getSound(130779172)
  100. diamondbreak.Pitch=2
  101. magicriff=getSound(588735156)
  102. bigmagic=getSound(231917773)
  103. walksound=getSound(142665236)
  104. apoc=getSound(235097615)
  105. rise=getSound(231917834)
  106. rise.Pitch=1.4
  107. ultdi=getSound(231917823)
  108. giantexplosion=getSound(233091206)
  109. local explodcharg=getSound(588697035)
  110. explodcharg.Volume=1
  111.  
  112. local magcd=rbx..lib.darkmagiccircle
  113.  
  114. --tables
  115. tweenTable={}
  116. altTweenTable={}
  117. local alljoints={}
  118. textTable={}
  119. local fx={}
  120. moves={}
  121. connectlist={}
  122. cooldowns={}
  123. movers={}
  124. local linetable={}
  125. moveDescriptions={
  126. ['Dark Missile']={move='Dark Missile',key='Left Mouse Button',desc=[[A basic, dark blast that is cheap on mana and easy to use. Deals low damage.]]},
  127. ['Normal Block']={move='Normal Block',desc=[[Blocks projectile attacks where you aim.]]},
  128. ['Rive Beam']={move='Rive Beam',desc=[[A beam of energy that deals heavy damage and knocks down foes.]]},
  129. ['Dark Spikes']={move='Dark Spikes',desc=[[A series of dark stakes that explode to push enemies back and deal medium damage.]]},
  130. ['Down Slam']={move='Down Slam',key=[[Space, Space, Q]],desc=[[An aerial attack that slams the character against the ground to create a shockwave that knocks down and deals low damage to enemies.]]},
  131. ['Aerial Sword']={move='Aerial Sword',key=[[Space, Space, Hold R]],desc=[[An aerial attack with huge power; creates a sphere of dark energy that flings spectral swords which explode and deal damage.]]},
  132. ['Curse']={move='Curse',desc=[[An attack that inflicts the Cursed debuff (5% maxhealth damage every second) and lifesteals half of damage dealt.]]},
  133. ['Dark Slash']={move='Dark Slash',desc=[[Summons a spectral sword that slashes to deal huge critical damage. Very high crit chance.]]},
  134. ['Diamond Storm']={move='Diamond Storm',desc=[[Charge up dark energy to release a flurry of diamonds that explode to deal damage with high crit chance. Heals twice damage dealt. High mana cost.]]},
  135. ['Origin Beam']={move='Origin Beam',key='LMB, LMB, E',desc=[[Combo move: charges a beam that is held for a short time and deals rapid damage.]]},
  136. ['Nightmare Overture']={move='Nightmare Overture',key='Z',desc=[[Ultimate move: Four pillars rise, charges a diamond levitates the user. Creates four diamonds than can be shot, dealing massive damage. Final diamond explodes, dealing massive damage and the Curse debuff to anyone inside the blast radius. ]]}
  137. }
  138.  
  139. --bool global
  140. local run=false
  141. idle=false
  142. local animPlaying=false
  143. local runLeg=false
  144. canRunLeg=false
  145. local deb=false
  146. local basicswitch=false
  147. local canExecuteMoves=true
  148. local bg=false
  149. local sprinting=false
  150. ascension=false
  151. local aright=false
  152. local aleft=false
  153. local aforward=false
  154. local aback=false
  155. local mult=2
  156.  
  157. --string
  158. rcombostring=[[]]
  159.  
  160. --num
  161. maxmana=900
  162. mana=900
  163. chain=0
  164. regws=16
  165. bigws=14
  166.  
  167.  
  168. -- gui
  169. local managui=int('ScreenGui',plr.PlayerGui)
  170. managui.Name='Mana Gui'
  171. local frame=int('Frame',managui)
  172. frame.Size=UDim2.new(0.15,0,0.02,0)
  173. frame.Position=UDim2.new(1-0.17,0,0.7,0)
  174. frame.BackgroundColor3=BrickColor.new('Black').Color
  175. frame.BorderColor3=BrickColor.new('Really black').Color
  176. frame.BorderSizePixel=6
  177.  
  178. local manabartext=int('TextLabel',frame)
  179. manabartext.ZIndex=2
  180. manabartext.Size=UDim2.new(1,0,1,0)
  181. manabartext.TextColor3=BrickColor.new('White').Color
  182. manabartext.TextStrokeTransparency=1
  183. manabartext.Font='SourceSansLight'
  184. manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
  185. manabartext.FontSize='Size18'
  186. manabartext.BackgroundTransparency=1
  187.  
  188. local manabar=int('Frame',frame)
  189. manabar.Size=UDim2.new(1,0,1,0)
  190. manabar.BorderSizePixel=0
  191. manabar.BackgroundColor3=BrickColor.new('Bright red').Color
  192. manabar.Size=UDim2.new(mana/maxmana,0,1,0)
  193.  
  194. local chainframe=int('Frame',managui)
  195. chainframe.Size=frame.Size
  196. chainframe.BackgroundTransparency=1
  197. chainframe.Position=frame.Position+UDim2.new(0.07,0,-0.05,0)
  198. local chaintext=int('TextLabel',chainframe)
  199. chaintext.BackgroundTransparency=1
  200. chaintext.TextStrokeColor3=BrickColor.new('White').Color
  201. chaintext.TextStrokeTransparency=0
  202. chaintext.Size=UDim2.new(1,0,1,0)
  203. chaintext.Font='Antique'
  204. chaintext.FontSize='Size48'
  205. chaintext.Text='0x'
  206.  
  207. local r=int('TextLabel',chainframe)
  208. r.BackgroundTransparency=1
  209. r.TextColor3=BrickColor.new('White').Color
  210. --r.TextStrokeTransparency=0
  211. r.Size=UDim2.new(1,0,1,0)
  212. r.Font='Antique'
  213. r.FontSize='Size24'
  214. r.Text=string.reverse('neviR')
  215. r.Position=UDim2.new(-0.9,0,0.5,0)
  216.  
  217. local cooldownframe=int('Frame',managui)
  218. cooldownframe.Size=UDim2.new(0.3,0,0.2,0)
  219. cooldownframe.BorderSizePixel=0
  220. cooldownframe.Transparency=1
  221. cooldownframe.Position=UDim2.new(0.7,0,0.8,0)
  222.  
  223. local movebutton=int('TextButton',managui)
  224. movebutton.Position=UDim2.new(0.93,0,0.73,0)
  225. movebutton.Text='Moves'
  226. movebutton.Font='Antique'
  227. movebutton.BackgroundColor3=BrickColor.new('Really black').Color
  228. movebutton.BorderSizePixel=0
  229. movebutton.TextColor3=BrickColor.new('White').Color
  230. movebutton.FontSize='Size24'
  231. movebutton.Size=UDim2.new(0.05,0,0.025,0)
  232.  
  233. movesframe=int('Frame',managui)
  234. movesframe.Size=UDim2.new(0.3,0,0.5,0)
  235. movesframe.BackgroundColor3=BrickColor.new('Really black').Color
  236. movesframe.BorderSizePixel=6
  237. movesframe.Position=UDim2.new(0.35,0,0.25,0)
  238. movesframe.BorderColor3=BrickColor.new('Bright red').Color
  239. movesframe.Visible=false
  240.  
  241. local scrollframe=int('ScrollingFrame',movesframe)
  242. scrollframe.Size=UDim2.new(0.35,0,1,0)
  243. scrollframe.BackgroundColor3=BrickColor.new('Really black').Color
  244. scrollframe.ZIndex=2
  245. scrollframe.BorderColor3=BrickColor.new('Bright red').Color
  246. scrollframe.BorderSizePixel=2
  247.  
  248. local descbox=int('Frame',movesframe)
  249. descbox.Size=UDim2.new(1-0.35,0,1,0)
  250. descbox.Position=UDim2.new(0.35,0,0,0)
  251. descbox.ZIndex=3
  252. descbox.BackgroundTransparency=1
  253. descbox.BorderSizePixel=0
  254.  
  255. local nam=int('TextLabel',descbox)
  256. nam.Size=UDim2.new(1,0,0.05,0)
  257. nam.Position=UDim2.new(0,0,0.1,0)
  258. nam.ZIndex=4
  259. nam.Font='Antique'
  260. nam.FontSize='Size24'
  261. nam.BackgroundTransparency=1
  262. nam.TextColor3=BrickColor.new('White').Color
  263. nam.Text='Select a move!'
  264.  
  265. local desc=int('TextLabel',descbox)
  266. desc.BackgroundTransparency=1
  267. desc.TextWrapped=true
  268. desc.Font='Antique'
  269. desc.FontSize='Size32'
  270. desc.Text=''
  271. desc.TextColor3=BrickColor.new('White').Color
  272. desc.TextXAlignment='Center'
  273. desc.TextYAlignment='Top'
  274. desc.Size=UDim2.new(1,0,0.6,0)
  275. desc.Position=UDim2.new(0,0,0.2,0)
  276. desc.ZIndex=4
  277. desc.TextScaled=true
  278.  
  279. local manacostg=int('TextLabel',desc)
  280. manacostg.Size=UDim2.new(1,0,0.1,0)
  281. manacostg.Text=''
  282. manacostg.Font='Antique'
  283. manacostg.FontSize='Size28'
  284. manacostg.TextColor3=BrickColor.new('White').Color
  285. manacostg.Position=UDim2.new(0,0,1,0)
  286. manacostg.BackgroundTransparency=1
  287.  
  288. local cmb=int('TextLabel',desc)
  289. cmb.Size=UDim2.new(1,0,0.1,0)
  290. cmb.Text=''
  291. cmb.Font='Antique'
  292. cmb.FontSize='Size28'
  293. cmb.TextColor3=BrickColor.new('White').Color
  294. cmb.Position=UDim2.new(0,0,1.1,0)
  295. cmb.BackgroundTransparency=1
  296.  
  297. local buttony=0.002
  298.  
  299. for _,v in pairs(moveDescriptions) do
  300. local button=int('TextButton',scrollframe)
  301. button.Size=UDim2.new(0.85,0,0.05,0)
  302. button.BorderSizePixel=0
  303. button.BackgroundColor3=BrickColor.new('Bright red').Color
  304. button.Font='Antique'
  305. button.FontSize='Size24'
  306. button.TextColor3=BrickColor.new('White').Color
  307. button.TextWrapped=true
  308. button.Text=v.move
  309. -- button.TextScaled=true
  310. button.ZIndex=3
  311. button.Position=UDim2.new(0.03,0,buttony,0)
  312. buttony=buttony+0.052
  313. button.MouseButton1Down:connect(function()
  314. desc.Text=v.desc
  315. nam.Text=v.move
  316. if v.key then
  317. cmb.Text='Keys: ' .. v.key
  318. else
  319. cmb.Text='Keys: ' .. string.upper(moves[v.move].key)
  320. end
  321. manacostg.Text='Mana Cost: ' .. tostring(moves[v.move].manacost)
  322. end)
  323. end
  324.  
  325. movebutton.MouseButton1Down:connect(function()
  326. if movesframe.Visible==false then
  327. movesframe.Visible=true
  328. else
  329. movesframe.Visible=false
  330. end
  331. end)
  332.  
  333. local cx=0
  334. local cy=0
  335.  
  336. addCoolDownGui=function(v)
  337. local thing=int('TextLabel',cooldownframe)
  338. thing.TextWrapped=true
  339. thing.Size=UDim2.new(0.19,0,0.5,0)
  340. thing.Position=UDim2.new(cx,0,cy,0)
  341. thing.BackgroundColor3=BrickColor.new('Really black').Color
  342. thing.Font='Antique'
  343. thing.FontSize='Size24'
  344. thing.TextColor3=BrickColor.new('White').Color
  345. thing.BorderSizePixel=0
  346. thing.Text=v.move .. ' ' .. tostring(v.timeleft)
  347. spawn(function()
  348. repeat wait(0.1) thing.Text=v.move .. ' ' .. tostring(v.timeleft) until v.timeleft<0.1
  349. thing:Destroy()
  350. -- if cy<1 and cx>0 then
  351. -- cx=cx-0.2
  352. -- end
  353. -- if cy>1 and cx>0 then
  354. -- cx=cx-0.2
  355. --end
  356. updateCoolDowns()
  357. end)
  358. if cx<1-0.2 then
  359. cx=cx+0.2
  360. else
  361. cy=0.5
  362. cx=0
  363. end
  364. end
  365.  
  366. updateCoolDowns=function()
  367. cooldownframe:clearAllChildren()
  368. cx=0
  369. cy=0
  370. for _,v in pairs(cooldowns) do
  371. addCoolDownGui(v)
  372. end
  373. end
  374.  
  375. ypcall(function()
  376. ch.Animate:Destroy()
  377. ch.Humanoid.Animator:Destroy()
  378. end)
  379.  
  380. if ch:findFirstChild("Riven") then
  381. ch['Riven']:Destroy()
  382. end
  383.  
  384. local tube=int("Model",ch)
  385. tube.Name='Riven'
  386. script.Parent=tube
  387.  
  388. --functions
  389.  
  390. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
  391. p0.Position = p1.Position
  392. local w = Instance.new('Motor',par or p0)
  393. w.Part0 = p1
  394. w.Part1 = p0
  395. w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
  396. w.MaxVelocity = .1
  397. return w
  398. end
  399.  
  400. function clerp(c1,c2,sp)
  401. local R1,R2,R3 = c1:toEulerAnglesXYZ()
  402. local R21,R22,R23 = c2:toEulerAnglesXYZ()
  403. return CFrame.new(
  404. c1.X + (c2.X-c1.X)*sp,
  405. c1.Y + (c2.Y-c1.Y)*sp,
  406. c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles(
  407. R1 + (R21-R1)*sp,
  408. R2 + (R22-R2)*sp,
  409. R3 + (R23-R3)*sp
  410. )
  411. end
  412.  
  413. Tween = function(Weld, Stop, Step,a)
  414. ypcall(function()
  415. local func = function()
  416. local Start = Weld.C1
  417. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  418. local Stop = Stop
  419. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  420. if not Step then Step=0.1 end
  421. table.insert(tweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
  422. end
  423. if a then coroutine.wrap(func)() else func() end
  424. end)
  425. end
  426.  
  427. altTween = function(Weld, Stop, Step,a)
  428. ypcall(function()
  429. local func = function()
  430. local Start = Weld.C1
  431. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  432. local Stop = Stop
  433. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  434. if not Step then Step=0.1 end
  435. table.insert(altTweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
  436. end
  437. if a then coroutine.wrap(func)() else func() end
  438. end)
  439. end
  440.  
  441. weld=function(p0,p1,c0)
  442. local w=Instance.new("Weld",p0)
  443. w.Part0=p0
  444. w.Part1=p1
  445. w.C0=c0
  446. return w
  447. end
  448.  
  449. cp=function(parent,color,size,anchored,cancollide)
  450. local newp=Instance.new("Part",parent)
  451. newp.TopSurface='SmoothNoOutlines'
  452. newp.BottomSurface='SmoothNoOutlines'
  453. newp.FrontSurface='SmoothNoOutlines'
  454. newp.BackSurface='SmoothNoOutlines'
  455. newp.RightSurface='SmoothNoOutlines'
  456. newp.LeftSurface='SmoothNoOutlines'
  457. newp.FormFactor="Custom"
  458. newp.BrickColor=bc(color)
  459. local rn=math.random(3)
  460. if rn==1 then
  461. -- newp.BrickColor=BrickColor.new('Bright red')
  462. end
  463. newp.Size=size
  464. newp.Anchored=anchored
  465. newp.CanCollide=cancollide
  466. newp:BreakJoints()
  467. return newp
  468. end
  469.  
  470.  
  471. if ch:findFirstChild('Body Colors') then
  472. ch['Body Colors'].HeadColor=BrickColor.new('Really black')
  473. ch['Body Colors'].TorsoColor=BrickColor.new('Really black')
  474. ch['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  475. ch['Body Colors'].RightLegColor=BrickColor.new('Bright red')
  476. ch['Body Colors'].RightArmColor=BrickColor.new('Really black')
  477. ch['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  478. end
  479.  
  480. for _,v in pairs(ch:GetChildren()) do
  481. if v.className=='Accessory' then
  482. v:Destroy()
  483. elseif v.className=='Part' then
  484. v.BrickColor=BrickColor.new('Really black')
  485. end
  486. if v.Name=='Right Leg' then
  487. v.BrickColor=BrickColor.new('Bright red')
  488. end
  489. end
  490.  
  491. if ch:findFirstChild('Pants') then
  492. ch.Pants:Destroy()
  493. end
  494.  
  495. if ch:findFirstChild('Shirt') then
  496. ch.Shirt:Destroy()
  497. end
  498.  
  499. destroyJoints=function()
  500. for i=1,5 do
  501. for _,v in pairs(alljoints) do
  502. ypcall(function()
  503. v:Destroy()
  504. table.remove(alljoints,_)
  505. end)
  506. end
  507. end
  508. end
  509.  
  510. initializeJoints=function()
  511. destroyJoints()
  512. rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
  513. rabr.Position = torso.Position
  514. rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
  515. w = Instance.new("Weld",tube)
  516. w.Part0,w.Part1 = ch['Right Arm'],rabr
  517. w.C1 = CFrame.new(0,-.5,0)
  518. labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
  519. labr.Position = torso.Position
  520. lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
  521. ww = Instance.new("Weld",tube)
  522. ww.Part0,ww.Part1 = ch['Left Arm'],labr
  523. ww.C1 = CFrame.new(0,-.5,0)
  524. rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
  525. rlabr.Position = torso.Position
  526. rlw = Weld(rlabr,torso,0.5,-1.5,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
  527. wl = Instance.new("Weld",tube)
  528. wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
  529. wl.C1 = CFrame.new(0,-.5,0)
  530. llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
  531. llabr.Position = torso.Position
  532. llw = Weld(llabr,torso,-0.5,-1.5,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
  533. wwl = Instance.new("Weld",tube)
  534. wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
  535. wwl.C1 = CFrame.new(0,-.5,0)
  536. nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
  537. nk.Position = torso.Position
  538. neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
  539. www = Instance.new("Weld",tube)
  540. www.Part0,www.Part1 = ch['Head'],nk
  541. www.C1 = CFrame.new(0,-.5,0)
  542. table.insert(alljoints,rabr)
  543. table.insert(alljoints,labr)
  544. table.insert(alljoints,rw)
  545. table.insert(alljoints,lw)
  546. table.insert(alljoints,w)
  547. table.insert(alljoints,ww)
  548. table.insert(alljoints,rlabr)
  549. table.insert(alljoints,llabr)
  550. table.insert(alljoints,rlw)
  551. table.insert(alljoints,llw)
  552. table.insert(alljoints,wl)
  553. table.insert(alljoints,wwl)
  554. table.insert(alljoints,nk)
  555. table.insert(alljoints,neck)
  556. table.insert(alljoints,www)
  557. end
  558.  
  559. cyl=function(prt)
  560. local c=int("CylinderMesh",prt)
  561. c.Name='mesh'
  562. return c
  563. end
  564.  
  565. blo=function(prt)
  566. local c=int("BlockMesh",prt)
  567. c.Name='bmsh'
  568. return c
  569. end
  570.  
  571. sphere=function(prt)
  572. local c=int('SpecialMesh',prt)
  573. c.MeshType='Sphere'
  574. return c
  575. end
  576.  
  577. newSpm=function(prt)
  578. local nspm=int('SpecialMesh',prt)
  579. nspm.MeshType='FileMesh'
  580. return nspm
  581. end
  582.  
  583.  
  584. --cool hat
  585. local hat=cp(tube,'Really black',Vector3.new(1,1,1))
  586. local hatmesh=int('SpecialMesh',hat)
  587. hatmesh.MeshId=rbx..'24102243'
  588. weld(ch.Head,hat,cfn(0,0.6,0))
  589.  
  590.  
  591. local rarmdiamond=cp(tube,'Bright red',Vector3.new(1,1,1))
  592. local dia=newSpm(rarmdiamond)
  593. dia.MeshId=rbx..lib.diamond
  594. dia.Scale=Vector3.new(0.4,0.8,0.4)
  595. weld(ch['Right Arm'],rarmdiamond,cfn(0.4,0,0))
  596.  
  597. local testshoulder=cp(tube,'Bright red',Vector3.new(1.1,0.6,1.1))
  598. testshoulder.Material='SmoothPlastic'
  599. weld(ch['Right Arm'],testshoulder,cfn(0,0.8,0))
  600.  
  601. --local testtorso=cp(tube,'Bright red',Vector3.new(2.8,0.4,1.1))
  602. --blo(testtorso).Scale=Vector3.new(0.95,1,0.95)
  603. --weld(tor,testtorso,cfn(0,0,0)*ang(0,0,mr(45)))
  604.  
  605. local testhalf=cp(tube,'Bright red',Vector3.new(1,2,1))
  606. testhalf.Material='SmoothPlastic'
  607. blo(testhalf).Scale=Vector3.new(1.01,1.01,1.01)
  608. weld(tor,testhalf,cfn(0.5,0,0))
  609.  
  610. blo(ch['Right Leg'])
  611. ch['Right Leg'].Material='SmoothPlastic'
  612. ch['Right Leg'].TopSurface='SmoothNoOutlines'
  613. ch['Right Leg'].BottomSurface='SmoothNoOutlines'
  614. ch['Right Leg'].LeftSurface='SmoothNoOutlines'
  615. ch['Right Leg'].RightSurface='SmoothNoOutlines'
  616. ch['Right Leg'].FrontSurface='SmoothNoOutlines'
  617. ch['Right Leg'].BackSurface='SmoothNoOutlines'
  618.  
  619. local cooldiamond=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  620. local dia=newSpm(cooldiamond)
  621. dia.Scale=Vector3.new(0.4,0.8,0.45)
  622. dia.MeshId=rbx..lib.diamond
  623. weld(testhalf,cooldiamond,cfn(0,0.3,-0.3))
  624.  
  625. local cooldiamond2=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  626. local dia=newSpm(cooldiamond2)
  627. dia.Scale=Vector3.new(0.4,0.8,0.45)
  628. dia.MeshId=rbx..lib.diamond
  629. weld(testhalf,cooldiamond2,cfn(0.2,-0.15,-0.3))
  630.  
  631. local cooldiamond3=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  632. local dia=newSpm(cooldiamond3)
  633. dia.Scale=Vector3.new(0.4,0.8,0.45)
  634. dia.MeshId=rbx..lib.diamond
  635. weld(testhalf,cooldiamond3,cfn(-0.2,-0.15,-0.3))
  636.  
  637. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  638. p1.Material='SmoothPlastic'
  639. local bm=blo(p1)
  640. bm.Scale=Vector3.new(0.05,0.15,0.5)
  641. weld(testshoulder,p1,cfn(0.55,0.1,0.225))
  642.  
  643. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  644. p1.Material='SmoothPlastic'
  645. local bm=blo(p1)
  646. bm.Scale=Vector3.new(0.05,0.5,0.15)
  647. weld(testshoulder,p1,cfn(0.55,0,0.225))
  648.  
  649. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  650. p1.Material='SmoothPlastic'
  651. local bm=blo(p1)
  652. bm.Scale=Vector3.new(0.05,0.525,0.15)
  653. weld(testshoulder,p1,cfn(0.55,0.005,0))
  654.  
  655. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  656. p1.Material='SmoothPlastic'
  657. local bm=blo(p1)
  658. bm.Scale=Vector3.new(0.05,0.525,0.15)
  659. weld(testshoulder,p1,cfn(0.55,0.005,-0.15))
  660.  
  661. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  662. p1.Material='SmoothPlastic'
  663. local bm=blo(p1)
  664. bm.Scale=Vector3.new(0.05,0.525,0.15)
  665. weld(testshoulder,p1,cfn(0.55,0.005,-0.23)*ang(mr(35),0,0))
  666.  
  667. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  668. p1.Material='SmoothPlastic'
  669. local bm=blo(p1)
  670. bm.Scale=Vector3.new(0.05,0.525,0.15)
  671. weld(testshoulder,p1,cfn(0.55,0.005,-0.3))
  672.  
  673. --blo(ch['Right Leg'])
  674. --ch['Right Leg'].Material='SmoothPlastic'
  675.  
  676. --[[
  677. local testp=cp(tube,'Bright red',Vector3.new(2.1,1.3,1.2))
  678. local tpb=blo(tstp)
  679. tpb.Scale=Vector3.new(1.01,1.01,1)
  680. weld(tor,testp,cfn(0,0.4,0))
  681. ]]
  682.  
  683.  
  684.  
  685. initializeJoints()
  686.  
  687. reset=function()
  688. if run == false and animPlaying == false then
  689. altTweenTable={}
  690. Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(5)))
  691. Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(-5)))
  692. Tween(rw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
  693. Tween(lw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
  694. Tween(neck,cfn())
  695. Tween(rj,cfn(0,0.08*math.sin(tick()*1.5),0),0.3)
  696. end
  697. end
  698.  
  699. bigreset=function()
  700. if run == false and animPlaying == false then
  701. altTweenTable={}
  702. Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(5)))
  703. Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-5)))
  704. Tween(rw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
  705. Tween(lw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
  706. Tween(neck,cfn())
  707. Tween(rj,cfn(0,0.08*math.sin(tick()*1.5*mult),0),0.3)
  708. end
  709. end
  710.  
  711.  
  712. resetLegs=function()
  713. altTweenTable={}
  714. Tween(llw,cfn())
  715. Tween(rlw,cfn())
  716. end
  717.  
  718. walkCycle=function()
  719. if run==true and animPlaying==false then
  720. tweenTable={}
  721. Tween(neck,cfn())
  722. Tween(rj,cfn())
  723. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
  724. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
  725. Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
  726. Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
  727. end
  728. end
  729.  
  730. walkCycleBig=function()
  731. if run==true and animPlaying==false then
  732. tweenTable={}
  733. Tween(neck,cfn())
  734. Tween(rj,cfn())
  735. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
  736. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
  737. Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
  738. Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
  739. end
  740. end
  741.  
  742. sprintCycle=function()
  743. if run==true and animPlaying==false then
  744. tweenTable={}
  745. Tween(rj,cfn()*ang(mr(10),0,0))
  746. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*11))*ang(mr(20)+mr(60*math.sin(tick()*11)),0,0),0.25)
  747. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*11))*ang(mr(20)+mr(-60*math.sin(tick()*11)),0,0),0.25)
  748. Tween(rw,cfn()*ang(mr(-20)+mr(60*math.sin(tick()*11)),0,mr(-10)),0.25)
  749. Tween(lw,cfn()*ang(mr(-20)+mr(-60*math.sin(tick()*11)),0,mr(10)),0.25)
  750. end
  751. end
  752.  
  753. local jumping=false
  754.  
  755. jump=function()
  756. if animPlaying==false then
  757. jumping=true
  758. run=false
  759. resetLegs()
  760. tweenTable={}
  761. altTweenTable={}
  762. -- animPlaying=true
  763. -- Tween(rj,cfn()*ang(mr(-15),0,0),0.2)
  764. Tween(neck,cfn(0,0,-0.2)*ang(mr(-20),0,0),0.1)
  765. Tween(rw,cfn()*ang(mr(15),0,mr(-25)),0.1)
  766. Tween(lw,cfn()*ang(mr(15),0,mr(25)),0.1)
  767. Tween(rlw,cfn()*ang(mr(15),0,0),0.1)
  768. Tween(llw,cfn()*ang(mr(15),0,0),0.1)
  769. wait(0.2)
  770. reset()
  771. wait(0.1)
  772. -- animPlaying=false
  773. jumping=false
  774. end
  775. end
  776.  
  777. walkLegs=function()
  778. if runLeg==true then
  779. altTweenTable={}
  780. altTween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(20)+mr(50*math.sin(tick()*8)),0,0),0.6)
  781. altTween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(20)+mr(-50*math.sin(tick()*8)),0,0),0.6)
  782. end
  783. end
  784.  
  785. dealDamage=function(man,damage,crit,multi,lifesteal)
  786. if man and man:findFirstChild'Humanoid' and man:findFirstChild'Head' then
  787. local dm=damage
  788. local cr=false
  789. local hm=man.Humanoid
  790. if crit then
  791. if crit>0 then
  792. local c=math.random(crit)
  793. if c==1 then
  794. cr=true
  795. end
  796. end
  797. end
  798. if cr==true then
  799. if not multi then
  800. dm=dm*1.5
  801. else
  802. dm=dm*multi
  803. end
  804. end
  805. hm:TakeDamage(dm)
  806. if lifesteal then
  807. --print'lifesteal'
  808. local plife=lifesteal*dm
  809. if hum.Health<hum.MaxHealth then
  810. hum.Health=hum.Health+plife
  811. local bbg=int('BillboardGui',tube)
  812. bbg.Size=UDim2.new(1,0,1,0)
  813. bbg.StudsOffset=Vector3.new(0,2,0)
  814. bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
  815. bbg.Adornee=ch.Head
  816. bbg.AlwaysOnTop=true
  817. local tlabl=int('TextLabel',bbg)
  818. tlabl.Size=UDim2.new(1,0,1,0)
  819. tlabl.Text=tostring(plife)
  820. tlabl.BackgroundTransparency=1
  821. tlabl.TextColor3=BrickColor.new('Bright green').Color
  822. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  823. tlabl.TextStrokeTransparency=0
  824. tlabl.Font='Antique'
  825. tlabl.FontSize='Size60'
  826. table.insert(textTable,bbg)
  827. end
  828. end
  829. chain=chain+1
  830. if hm.MaxHealth>=99999 then
  831. hm.Parent:BreakJoints()
  832. end
  833. local bbg=int('BillboardGui',tube)
  834. bbg.Size=UDim2.new(1,0,1,0)
  835. bbg.StudsOffset=Vector3.new(0,2,0)
  836. bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
  837. bbg.Adornee=man.Head
  838. bbg.AlwaysOnTop=true
  839. local tlabl=int('TextLabel',bbg)
  840. tlabl.Size=UDim2.new(1,0,1,0)
  841. tlabl.Text=tostring(dm)
  842. tlabl.BackgroundTransparency=1
  843. tlabl.TextColor3=BrickColor.new('Really black').Color
  844. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  845. if cr==true then
  846. tlabl.TextColor3=BrickColor.new('Really red').Color
  847. tlabl.TextStrokeColor3=BrickColor.new('Really black').Color
  848. end
  849. tlabl.TextStrokeTransparency=0
  850. tlabl.Font='Antique'
  851. tlabl.FontSize='Size60'
  852. table.insert(textTable,bbg)
  853. return dm
  854. end
  855. end
  856.  
  857. displayText=function(thing,text,color)
  858. local bbg=int('BillboardGui',tube)
  859. bbg.Size=UDim2.new(1,0,1,0)
  860. bbg.StudsOffset=Vector3.new(0,3,0)
  861. bbg.Adornee=thing
  862. bbg.AlwaysOnTop=true
  863. local tlabl=int('TextLabel',bbg)
  864. tlabl.Size=UDim2.new(1,0,1,0)
  865. tlabl.Text=text
  866. tlabl.BackgroundTransparency=1
  867. tlabl.TextColor3=BrickColor.new('Really black').Color
  868. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  869. tlabl.TextStrokeTransparency=0
  870. tlabl.Font='Antique'
  871. tlabl.FontSize='Size60'
  872. table.insert(textTable,bbg)
  873. end
  874.  
  875. local tp=cp(tube,'White',Vector3.new(1,1,1))
  876. tp.Transparency=1
  877. weld(ch['Right Arm'],tp,cfn(0,-1,0))
  878.  
  879. addFx=function(item,int,final,func)
  880. table.insert(fx,{item=item,int=int,func=func,final=final,stepval=0})
  881. end
  882.  
  883. addMove=function(name,key,cooldown,func,manacost)
  884. moves[name]={key=key,cooldown=cooldown,func=func,manacost=manacost}
  885. end
  886.  
  887. drawLine=function(point_a,point_b,bc_code,angle,mag,width)
  888. local dist=(point_a-point_b).magnitude;
  889. local num=1
  890. if mag then
  891. num=mag
  892. end
  893. if dist>num then
  894. local rad=dist/2;
  895. local line=Instance.new('Part',tube)
  896. line.Anchored=true;
  897. line.FormFactor='Custom';
  898. line.BrickColor=BrickColor.new(bc_code);
  899. line.TopSurface='SmoothNoOutlines'
  900. line.BottomSurface='SmoothNoOutlines'
  901. line.LeftSurface='SmoothNoOutlines'
  902. line.RightSurface='SmoothNoOutlines'
  903. line.FrontSurface='SmoothNoOutlines'
  904. line.BackSurface='SmoothNoOutlines'
  905. line.Material='Neon'
  906. line.CanCollide=false;
  907. line.Size=Vector3.new(0.7,dist,0.7);
  908. if width then
  909. line.Size=Vector3.new(width,dist,width);
  910. end
  911. cyl(line).Name='blok'
  912. -- Instance.new("BlockMesh",line).Name='blok'
  913. line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad)*ang(mr(90),0,0)--*angle;
  914. return line;
  915. end
  916. end;
  917.  
  918. depleteMana=function(amount)
  919. if mana>0 then
  920. if mana-amount>0 then
  921. mana=mana-amount
  922. return true
  923. else
  924. return false
  925. end
  926. end
  927. end
  928.  
  929. executeMove=function(name)
  930. if canExecuteMoves==true then
  931. if ch and hum and hum.Health>0 then
  932. local can=true
  933. for _,v in pairs(cooldowns) do
  934. if v.move==name then
  935. can=false
  936. break
  937. --return false
  938. end
  939. end
  940. if name=='Nightmare Overture' then
  941. if Vector3.new(0,tor.Velocity.Y,0).magnitude>2 or Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 then
  942. can=false
  943. end
  944. end
  945. if can==true then
  946. local can2=true
  947. if game.Players.LocalPlayer:FindFirstChild("RivUlt") then
  948. local a=mana-moves[name].manacost
  949. local b=false
  950. if a>0 then
  951. b=true
  952. end
  953. if not b then
  954. can2=false
  955. end
  956. end
  957. if can2 then
  958. local c
  959. depleteMana(moves[name].manacost)
  960. moves[name].func()
  961. end
  962. return true
  963. else
  964. return false
  965. end
  966. end
  967. end
  968. end
  969.  
  970. addToCList=function(what,key)
  971. local a={what,key=key,up=false}
  972. table.insert(connectlist,a)
  973. return a
  974. end
  975.  
  976. waitForUp=function(what)
  977. repeat wait() until what.up==true
  978. end
  979.  
  980. addMover=function(what,step,func)
  981. table.insert(movers,{mover=what,step=step,lastpoint=what.CFrame,func=func})
  982. end
  983.  
  984. local function CreateRegion3FromLocAndSize(Position, Size)
  985. local SizeOffset = Size/2
  986. local Point1 = Position - SizeOffset
  987. local Point2 = Position + SizeOffset
  988. return Region3.new(Point1, Point2)
  989. end
  990.  
  991. local righthandle=cp(tube,"White",Vector3.new(1,1,1))
  992. weld(ch['Right Arm'],righthandle,cfn(0,-1,0))
  993. righthandle.Transparency=1
  994.  
  995. local lefthandle=cp(tube,"White",Vector3.new(1,1,1))
  996. weld(ch['Left Arm'],lefthandle,cfn(0,-1,0))
  997. lefthandle.Transparency=1
  998.  
  999. addCoolDown=function(move)
  1000. local a={timeleft=moves[move].cooldown,move=move}
  1001. addCoolDownGui(a)
  1002. table.insert(cooldowns,a)
  1003. end
  1004.  
  1005. addMove('Normal Block','f',0.5,function()
  1006. deb=true
  1007. idle=false
  1008. local ws=hum.WalkSpeed
  1009. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1010. hum.WalkSpeed=0
  1011. tweenTable={}
  1012. animPlaying=true
  1013. local pcf=tor.CFrame
  1014. Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
  1015. Tween(rw,cfn()*ang(mr(-86),mr(-15),0),0.2)
  1016. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1017. blocksound:Play()
  1018. local block=cp(workspace,'Really black',Vector3.new(8,6,1),true,true)
  1019. block.CFrame=pcf*CFrame.new(0,0,-5)
  1020. block.Material='Neon'
  1021. local bm=blo(block)
  1022. bm.Scale=Vector3.new(0,0,0.9)
  1023. addFx(block,0.05,nil,function() bm.Scale=bm.Scale+Vector3.new(0.05,0.05,0) end)
  1024. local a=addToCList('block_connect','f')
  1025. waitForUp(a)
  1026. addCoolDown('Normal Block')
  1027. hum.WalkSpeed=ws
  1028. deb=false
  1029. addFx(block,0.05,"destroy",function() block.Transparency=block.Transparency+0.05 block.bmsh.Scale=block.bmsh.Scale+Vector3.new(0.07,0.07,0) end)
  1030. idle=true
  1031. reset()
  1032. animPlaying=false
  1033. end,15)
  1034.  
  1035. --[[
  1036. addMove('Dark Lock','mb1mb1t',1,function()
  1037. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1038. local lv=tor.CFrame
  1039. tweenTable={}
  1040. animPlaying=true
  1041. deb=true
  1042. canRunLeg=true
  1043. magictone1:Play()
  1044. Tween(rj,cfn()*ang(0,mr(25),0),0.2)
  1045. Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
  1046. wait(0.2)
  1047. Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
  1048. Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
  1049. Tween(neck,cfn()*ang(0,mr(55),0))
  1050. local spot=4
  1051. addCoolDown('Dark Lock')
  1052. for i=1,10 do
  1053. wait(0.1)
  1054. local v=lv.lookVector*spot
  1055. --print(v)
  1056. spot=spot+14
  1057. local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
  1058. spike.CFrame=lv*CFrame.new(0,0,-spot)
  1059. local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
  1060. local dml=cyl(dam)
  1061. local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
  1062. local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
  1063. if bhit then
  1064. spike.CFrame=pos*CFrame.new(0,0,0)
  1065. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  1066. mgp.Transparency=1
  1067. mgp.CFrame=spike.CFrame
  1068. game.Debris:AddItem(mgp,2)
  1069. local sn=spexp:clone()
  1070. sn.Parent=mgp
  1071. sn.Volume=2
  1072. sn:Play()
  1073. dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
  1074. local blast=dam
  1075. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1076. local people={}
  1077. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1078. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1079. local can=false
  1080. if not v.Parent:findFirstChild('HitDeb') then
  1081. can=true
  1082. end
  1083. if can==true then
  1084. local db=Instance.new('StringValue',v.Parent)
  1085. db.Name='HitDeb'
  1086. game.Debris:AddItem(db,0.2)
  1087. local humin=v.Parent.Humanoid
  1088. if humin then
  1089. local php=humin.Health
  1090. dealDamage(humin.Parent,10+math.random(3),2)
  1091. local testvel=int('BodyVelocity',v)
  1092. testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1093. testvel.Velocity=Vector3.new()
  1094. game.Debris:addItem(testvel,1)
  1095. local fxb=cp(tube,'Really black',Vector3.new(10,10,10),true)
  1096. fxb.CFrame=spike.CFrame*CFrame.new(0,5,0)
  1097. fxb.Transparency=0.5
  1098. fxb.Material='Neon'
  1099. local blm=blo(fxb)
  1100. blm.Scale=Vector3.new(0,0,0)
  1101. addFx(fxb,0.1,nil,function() blm.Scale=blm.Scale+Vector3.new(0.1,0.1,0.1) end)
  1102. Delay(3.4,function()
  1103. dealDamage(v.Parent,10,5,2)
  1104. addFx(fxb,0.07,'destroy',function() blm.Scale=blm.Scale+Vector3.new(0.07,0.07,0.07) fxb.Transparency=fxb.Transparency-0.035 end)
  1105. end)
  1106. humin.Sit=true
  1107. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1108. print('equal')
  1109. humin:TakeDamage(20)
  1110. end
  1111. end
  1112. end
  1113. end
  1114. end
  1115. local cl=cyl(spike)
  1116. addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
  1117. addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end)
  1118. else
  1119. spike:Destroy()
  1120. end
  1121. end
  1122. wait(0.7)
  1123. deb=false
  1124. canRunLeg=false
  1125. animPlaying=false
  1126. reset()
  1127. end,50)
  1128. ]]
  1129.  
  1130. addMove('Diamond Storm','v',10,function()
  1131. animPlaying=true
  1132. deb=true
  1133. canExecuteMoves=false
  1134. hum.WalkSpeed=0
  1135. tweenTable={}
  1136. altTweenTable={}
  1137. Tween(rw,cfn(0,1,0)*ang(mr(-70),mr(-45),0))
  1138. Tween(lw,cfn()*ang(mr(-70),mr(45),0))
  1139. magicriff:Play()
  1140.  
  1141. game.Debris:AddItem(bgmc,1)
  1142. spawn(function()
  1143. for i=1,20 do
  1144. wait()
  1145. local fx=cp(tube,'Really black',Vector3.new(1.2,1.2,1.2),true)
  1146. fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1147. local bl=blo(fx)
  1148. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  1149. end
  1150. end)
  1151. wait(1)
  1152. bg=true
  1153. local a=addToCList('diamond_connect','v')
  1154. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1155. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1156. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1157. repeat wait(0.1)
  1158. local d=depleteMana(10)
  1159. if d then
  1160. local bgmc=bigmagic:clone()
  1161. bgmc.Parent=ch.Head
  1162. bgmc.Volume=1
  1163. bgmc:Play()
  1164. local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
  1165. crn.CFrame=tor.CFrame*cfn(0,-2.5,0)
  1166. local ms=newSpm(crn)
  1167. ms.TextureId=rbx..'132155326'
  1168. ms.MeshId=rbx..lib.crown
  1169. ms.VertexColor=Vector3.new(0,0,0)
  1170. ms.Scale=Vector3.new(1.5,1,1.5)
  1171. addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.3,0,0.3) end)
  1172. diamondproj:Play()
  1173. local dia=cp(tube,'Really black',Vector3.new(1,1,1))
  1174. local ran=math.random(2)
  1175. if ran==1 then
  1176. dia.BrickColor=BrickColor.new('Bright red')
  1177. end
  1178. local dmm=newSpm(dia)
  1179. dmm.Scale=Vector3.new(0.5,1,0.5)
  1180. dmm.MeshId=rbx..lib.diamond
  1181. dia.CFrame=righthandle.CFrame
  1182. local sw=dia
  1183. local vel=int('BodyVelocity',dia)
  1184. sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))*ang(mr(math.random(-math.random(3.4),math.random(3.4))),mr(math.random(-math.random(3.4),math.random(3.4))),mr(math.random(-math.random(3.4),math.random(3.4))))--*ang(mr(90),0,0)
  1185. vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1186. vel.Velocity=sw.CFrame.lookVector*152
  1187. sw.CFrame=sw.CFrame*ang(mr(90),0,0)
  1188. game.Debris:AddItem(sw,2)
  1189. local dmgdealt=false
  1190. local nct=sw.Touched:connect(function(part)
  1191. if part.Parent and part.Parent:findFirstChild('Humanoid') and not part:IsDescendantOf(ch) and not dmgdealt then
  1192. dealDamage(part.Parent,2.5,5,2,2)
  1193. dmgdealt=true
  1194. end
  1195. if part:IsDescendantOf(ch)==false then
  1196. local snd=diamondbreak:clone()
  1197. snd.Parent=sw
  1198. snd:Play()
  1199. vel:Destroy()
  1200. sw.Anchored=true
  1201. addFx(sw,0.07,'destroy',function() dmm.Scale=dmm.Scale+Vector3.new(0.1,0.1,0.1) dia.Transparency=dia.Transparency+0.07 end)
  1202. end
  1203. end)
  1204. else
  1205. a.up=true
  1206. end
  1207. until a.up==true
  1208. animPlaying=false
  1209. deb=false
  1210. bg=false
  1211. canExecuteMoves=true
  1212. hum.WalkSpeed=regws
  1213. reset()
  1214. end,100)
  1215.  
  1216. addMove('Curse','g',60,function()
  1217. deb=true
  1218. idle=false
  1219. animPlaying=true
  1220. canRunLeg=true
  1221. tweenTable={}
  1222. altTweenTable={}
  1223. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1224. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1225. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1226. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1227. wait(0.15)
  1228. curse:Play()
  1229. addCoolDown('Curse')
  1230. local bullet=cp(tube,'Really black',Vector3.new(1,1,1))
  1231. bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1232. bullet.Transparency=1
  1233. local bulletfx=bullet:clone()
  1234. bulletfx.Transparency=1
  1235. bulletfx.Parent=bullet
  1236. bulletfx.Anchored=true
  1237. sphere(bulletfx)
  1238. local angle=0
  1239. local lastpoint=bullet.CFrame
  1240. spawn(function()
  1241. repeat wait(0.06)
  1242. local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  1243. cfx.Transparency=1
  1244. local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  1245. rfx.Material='Neon'
  1246. local ran=math.random(2)
  1247. if ran==1 then
  1248. rfx.BrickColor=BrickColor.new('Bright red')
  1249. end
  1250. local bm=int('SpecialMesh',rfx)--blo(rfx)
  1251. bm.MeshType='FileMesh'
  1252. bm.MeshId=rbx..'9756362'
  1253. bm.Scale=Vector3.new(0.3,0.7,0.3)
  1254. local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1255. addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end)
  1256. cfx.CFrame=bullet.CFrame*CFrame.new(math.random(-math.random(25/10),math.random(25)/10),0,math.random(-math.random(25)/10,math.random(25)/10))
  1257. rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
  1258. game.Debris:AddItem(cfx,1.1)
  1259. game.Debris:AddItem(rfx,1.1)
  1260. until bullet.Parent==nil
  1261. end)
  1262. addMover(bullet,0.8,function()
  1263. angle=angle+1
  1264. local angles=CFrame.Angles(0,0,mr(angle))
  1265. bulletfx.CFrame=bullet.CFrame--*angles
  1266. --bullet.CFrame=bullet.CFrame*angles
  1267. local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
  1268. fxp.CFrame=bulletfx.CFrame--*ang(mr(-90),0,0)
  1269. local bmesh=int('SpecialMesh',fxp)
  1270. bmesh.MeshType='FileMesh'
  1271. bmesh.MeshId=rbx..lib.ring
  1272. bmesh.Scale=Vector3.new(2,2,2)
  1273. addFx(fxp,0.07,'destroy',function() bulletfx.CFrame=bullet.CFrame bmesh.Scale=bmesh.Scale-Vector3.new(0.1,0.1,0) fxp.Transparency=fxp.Transparency+0.07 end)
  1274. end)
  1275. bullet.Touched:connect(function(p)
  1276. if not p:isDescendantOf(ch) then
  1277. local thing
  1278. local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
  1279. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  1280. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  1281. thing=v
  1282. break
  1283. end
  1284. end
  1285. if thing and thing.Parent then
  1286. if thing.Parent:findFirstChild('Head') then
  1287. displayText(thing.Parent.Head,'Cursed','Really black')
  1288. else
  1289. displayText(thing,'Cursed','Really black')
  1290. end
  1291. end
  1292. local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
  1293. mgp.Transparency=1
  1294. mgp.CFrame=bullet.CFrame
  1295. game.Debris:AddItem(mgp,3)
  1296. local tsound=glass:clone()
  1297. tsound.Volume=2
  1298. tsound.Parent=mgp
  1299. tsound:Play()
  1300. --local explosound=getSound(142070128)
  1301. --explosound.Volume=0.8
  1302. --explosound.Pitch=1.2
  1303. -- explosound.Parent=p
  1304. --explosound:Play()
  1305. local position=bullet.CFrame
  1306. if thing and thing.Parent then
  1307. dealDamage(thing.Parent,5,5)
  1308. local humin=thing.Parent.Humanoid
  1309. spawn(function()
  1310. for i=1,10 do
  1311. wait(1)
  1312. if thing.Parent then
  1313. dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)
  1314. end
  1315. end
  1316. end)
  1317. end
  1318. local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1319. blast.Material='Neon'
  1320. local spm2=blo(blast)
  1321. spm2.Name='mesh'
  1322. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1323. if p.Name=='Torso' or p.Parent and p.Parent:findFirstChild'Torso' then
  1324. blast.CFrame=p.Parent.Torso.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1325. end
  1326. for i=1,5 do
  1327. local fx=blast:clone()
  1328. fx.Parent=tube
  1329. fx.CFrame=blast.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1330. addFx(fx,0.05,"destroy",function()
  1331. fx.mesh.Scale=fx.mesh.Scale+Vector3.new(0.1,0.1,0.1)
  1332. fx.Transparency=fx.Transparency+0.05
  1333. end)
  1334. end
  1335. addFx(blast,0.05,"destroy",function()
  1336. spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
  1337. blast.Transparency=blast.Transparency+0.05
  1338. end)
  1339. bullet:Destroy()
  1340. bulletfx:Destroy()
  1341. end
  1342. end)
  1343. game.Debris:AddItem(bullet,3)
  1344. local bv=int('BodyVelocity',bullet)
  1345. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1346. bv.Velocity=bullet.CFrame.lookVector*150
  1347. wait(0.5)
  1348. reset()
  1349. deb=false
  1350. canRunLeg=false
  1351. animPlaying=false
  1352. end,100)
  1353.  
  1354. addMove('Rive Beam','e',5,function()
  1355. tweenTable={}
  1356. altTweenTable={}
  1357. animPlaying=true
  1358. idle=false
  1359. deb=true
  1360. local pcf=tor.CFrame
  1361. canRunLeg=true
  1362. startsound:Play()
  1363. chargesound.Looped=true
  1364. chargesound:Play()
  1365. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1366. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1367. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1368. bg=true
  1369. local a=addToCList('beam_connect','e')
  1370. local charge=cp(tube,"Really black",Vector3.new(1,1,1))
  1371. charge.Material='Neon'
  1372. local spm=int('SpecialMesh',charge)
  1373. spm.MeshType='Sphere'
  1374. spm.Name='sphere'
  1375. weld(ch['Right Arm'],charge,cfn(0,-2,0))
  1376. local up=false
  1377. local multiplier=1
  1378. local cn=chargesound.DidLoop:connect(function()
  1379. local fx=charge:clone()
  1380. fx.Parent=tube
  1381. fx.CFrame=charge.CFrame
  1382. fx.BrickColor=BrickColor.new('Bright red')
  1383. weld(charge,fx,cfn())
  1384. addFx(fx,0.07,'destroy',function() if fx and fx:findFirstChild'sphere' then fx.sphere.Scale=fx.sphere.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end end)
  1385. end)
  1386. spawn(function()
  1387. repeat wait() if spm.Scale.X<2 then spm.Scale=spm.Scale+Vector3.new(0.05,0.05,0.05) multiplier=multiplier+0.1 end until up==true
  1388. end)
  1389. waitForUp(a)
  1390. cn:Disconnect()
  1391. up=true
  1392. addCoolDown('Rive Beam')
  1393. chargesound:Stop()
  1394. if multiplier<3.1 then
  1395. endsound:Play()
  1396. else
  1397. chargedupbeam:Play()
  1398. end
  1399. local ringFx=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1400. ringFx.CFrame=charge.CFrame*ang(mr(-90),0,0)
  1401. ringFx.Material='Neon'
  1402. local spm=int('SpecialMesh',ringFx)
  1403. spm.MeshId=rbx..lib.ring
  1404. spm.Scale=Vector3.new(2,2,2)
  1405. addFx(ringFx,0.08,"destroy",function()
  1406. spm.Scale=spm.Scale+Vector3.new(0.2,0.2,0)
  1407. ringFx.Transparency=ringFx.Transparency+0.08
  1408. end)
  1409. print(multiplier)
  1410. local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
  1411. if multiplier>=3.1 then
  1412. beam.BrickColor=BrickColor.new('Bright red')
  1413. end
  1414. local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300)
  1415. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  1416. local distance = (charge.CFrame.p - position).magnitude
  1417. beam.Size = Vector3.new(1, 1, distance)
  1418. beam.Material='Neon'
  1419. beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1420. local blast=cp(tube,"Really black",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false)
  1421. blast.Material='Neon'
  1422. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
  1423. if multiplier>=3.1 then
  1424. local blast2=blast:clone()
  1425. --blast2.Size=blast.Size-Vector3.new(1,1,1)
  1426. blast2.CFrame=blast.CFrame
  1427. blast2.Parent=blast
  1428. blast2.BrickColor=BrickColor.new('Bright red')
  1429. local spml=sphere(blast2)
  1430. spml.Scale=Vector3.new(0.8,0.8,0.8)
  1431. addFx(blast2,0.008,'destroy',function() spml.Scale=spml.Scale+Vector3.new(0.05,0.05,0.05) blast2.Transparency=blast2.Transparency+0.008 end )
  1432. end
  1433. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1434. local people={}
  1435. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1436. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1437. local can=false
  1438. if not v.Parent:findFirstChild('HitDeb') then
  1439. can=true
  1440. end
  1441. if can==true then
  1442. local db=Instance.new('StringValue',v.Parent)
  1443. db.Name='HitDeb'
  1444. game.Debris:AddItem(db,0.5)
  1445. local humin=v.Parent.Humanoid
  1446. if humin then
  1447. local php=humin.Health
  1448. dealDamage(humin.Parent,10*multiplier,10,1,0.05)
  1449. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1450. print('equal')
  1451. humin:TakeDamage(10*multiplier)
  1452. end
  1453. end
  1454. end
  1455. end
  1456. end
  1457. local blastsound=getSound(262562443)
  1458. blastsound.Parent=blast
  1459. blastsound.Volume=5
  1460. blastsound:Play()
  1461. blastsound:Stop()
  1462. blastsound:Play()
  1463. canRunLeg=false
  1464. runLeg=false
  1465. animPlaying=false
  1466. tweenTable={}
  1467. local spm2=int('SpecialMesh',blast)
  1468. spm2.MeshType='Sphere'
  1469. addFx(blast,0.008,"destroy",function()
  1470. spm2.Scale=spm2.Scale+Vector3.new(0.05,0.05,0.05)
  1471. blast.Transparency=blast.Transparency+0.008
  1472. end)
  1473. addFx(beam,0.1,"destroy",function()
  1474. beam.Transparency=beam.Transparency+0.1
  1475. end)
  1476. addFx(charge,0.1,"destroy",function()
  1477. charge.Transparency=charge.Transparency+0.1
  1478. end)
  1479. bg=false
  1480. run=false
  1481. idle=true
  1482. reset()
  1483. deb=false
  1484. end,60)
  1485.  
  1486. addMove('Down Slam','q',4,function()
  1487. currentkey=key
  1488. deb=true
  1489. animPlaying=true
  1490. altTweenTable={}
  1491. tweenTable={}
  1492. local rv=tor.CFrame.upVector
  1493. local bv=int('BodyVelocity',tor)
  1494. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1495. bv.Velocity=rv*-150
  1496. rushsound:Play()
  1497. Tween(rj,cfn()*ang(mr(180),0,0))
  1498. Tween(rw,cfn()*ang(mr(-180),0,0))
  1499. Tween(lw,cfn()*ang(mr(-180),0,0))
  1500. addCoolDown('Down Slam',4)
  1501. spawn(function()
  1502. repeat
  1503. wait()
  1504. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  1505. local ran=math.random(2)
  1506. if ran==1 then
  1507. cfx.BrickColor=BrickColor.new('Bright red')
  1508. cfx.Material='Neon'
  1509. end
  1510. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  1511. local b=blo(cfx)
  1512. addFx(cfx,0.05,'destroy',function()
  1513. cfx.Transparency=cfx.Transparency+0.05
  1514. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  1515. end)
  1516. until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  1517. end)
  1518. wait()
  1519. bv:Destroy()
  1520. multiplier=1
  1521. repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  1522. local bhit,pos=FindGround(cn(tor.CFrame.p),ch)
  1523. local blast=cp(tube,"Really black",Vector3.new(10,10,10),true,false)
  1524. blast.CFrame=pos
  1525. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
  1526. local people={}
  1527. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1528. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1529. local can=false
  1530. if not v.Parent:findFirstChild('HitDeb') then
  1531. can=true
  1532. end
  1533. if can==true then
  1534. local db=Instance.new('StringValue',v.Parent)
  1535. db.Name='HitDeb'
  1536. game.Debris:AddItem(db,0.5)
  1537. local humin=v.Parent.Humanoid
  1538. if humin then
  1539. local php=humin.Health
  1540. dealDamage(humin.Parent,20*multiplier,10)
  1541.  
  1542. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1543. print('equal')
  1544. humin:TakeDamage(20*multiplier)
  1545. end
  1546. end
  1547. end
  1548. end
  1549. end
  1550. local sp=sphere(blast)
  1551. blast.Material='Neon'
  1552. landsound:Play()
  1553. addFx(blast,0.02,'destroy',
  1554. function()
  1555. sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1)
  1556. blast.Transparency=blast.Transparency+0.02
  1557. end)
  1558. animPlaying=false
  1559. deb=false
  1560. end,40)
  1561.  
  1562. addMove('Aerial Sword','r',2,function()
  1563. deb=true
  1564. animPlaying=true
  1565. tweenTable={}
  1566. altTweenTable={}
  1567. canExecuteMoves=false
  1568. idle=false
  1569. run=false
  1570. aerialcharge:Play()
  1571. Tween(rw,cfn()*ang(mr(-90),0,0))
  1572. local bp
  1573. local bgg
  1574. local a=addToCList('Aerial Sword','r')
  1575. local still=true
  1576. bp=int('BodyPosition',tor)
  1577. bp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1578. bp.Position=tor.Position
  1579. local sphr=cp(tube,'Really black',Vector3.new(8,8,8),true)
  1580. sphr.Transparency=1
  1581. sphr.Material='Neon'
  1582. local spho=sphere(sphr)
  1583. spho.Name='spho'
  1584. spho.Scale=Vector3.new(0,0,0)
  1585. sphr.CFrame=tor.CFrame
  1586. addFx(sphr,0.07,nil,function() spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) sphr.Transparency=sphr.Transparency-0.07 end)
  1587. Delay(6,function()
  1588. if not a.up then
  1589. a.up=true
  1590. end
  1591. end)
  1592. repeat wait(0.3)
  1593. local b=depleteMana(35)
  1594. if b then
  1595. swsound:Play()
  1596. local fx=sphr:clone()
  1597. fx.Parent=tube
  1598. fx.CFrame=sphr.CFrame
  1599. fx.BrickColor=BrickColor.new('Bright red')
  1600. addFx(fx,0.07,'destroy',function() fx.spho.Scale=fx.spho.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end)
  1601. local sw=int('Part')
  1602. game.Debris:AddItem(sw,6)
  1603. sw.CanCollide=false
  1604. sw.Anchored=false
  1605. sw.BrickColor=BrickColor.new('Really black')
  1606. sw.Material='Neon'
  1607. sw.Size=Vector3.new(1,1,2)
  1608. sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))--*ang(mr(90),0,0)
  1609. sw.Parent=tube
  1610. sw.Transparency=1
  1611. addFx(sw,0.1,nil,function() sw.Transparency=sw.Transparency-.1 end)
  1612. local spm=int("SpecialMesh",sw)
  1613. spm.MeshType='FileMesh'
  1614. spm.MeshId=rbx..lib.yato
  1615. spm.Scale=Vector3.new(0.05,0.05,0.05)
  1616. local vel=int('BodyVelocity',sw)
  1617. vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1618. vel.Velocity=sw.CFrame.lookVector*152
  1619. sw.CFrame=sw.CFrame*ang(0,mr(180),0)
  1620. sw.Touched:connect(function(p)
  1621. if p:IsDescendantOf(ch)==false then
  1622. sw.Anchored=true
  1623. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  1624. mgp.CFrame=sw.CFrame
  1625. mgp.Transparency=1
  1626. game.Debris:AddItem(mgp,2)
  1627. ssp=swexp:clone()
  1628. ssp.Parent=mgp
  1629. ssp.Volume=2
  1630. ssp:Play()
  1631. local blast=cp(tube,'Bright red',Vector3.new(8,8,8),true)
  1632. blast.Material='Neon'
  1633. blast.CFrame=sw.CFrame
  1634. local sp=sphere(blast)
  1635. addFx(sw,0.05,'destroy',function() sw.Transparency=sw.Transparency+0.05 spm.Scale=spm.Scale+Vector3.new(0.01,0.01,0.01) end)
  1636. addFx(blast,0.07,'destroy',function() blast.Transparency=blast.Transparency+0.07 sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) end)
  1637. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1638. local people={}
  1639. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1640. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1641. local can=false
  1642. if not v.Parent:findFirstChild('HitDeb') then
  1643. can=true
  1644. end
  1645. if can==true then
  1646. local db=Instance.new('StringValue',v.Parent)
  1647. db.Name='HitDeb'
  1648. game.Debris:AddItem(db,0.2)
  1649. local humin=v.Parent.Humanoid
  1650. if humin then
  1651. local php=humin.Health
  1652. dealDamage(humin.Parent,10+math.random(5),5)
  1653.  
  1654. --humin.PlatformStand=true
  1655. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1656. print('equal')
  1657. humin:TakeDamage(15)
  1658. end
  1659. end
  1660. end
  1661. end
  1662. end
  1663. end
  1664. end)
  1665. else
  1666. a.up=true
  1667. end
  1668. until a.up==true
  1669. addCoolDown('Aerial Sword')
  1670. addFx(sphr,0.07,'destroy',function() sphr.Transparency=sphr.Transparency+0.07 spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) end)
  1671. still=false
  1672. spawn(function()
  1673. wait(0.3)
  1674. canExecuteMoves=true
  1675. end)
  1676. bp:Destroy()
  1677. tor.Anchored=false
  1678. deb=false
  1679. animPlaying=false
  1680. reset()
  1681. end,200)
  1682.  
  1683. addMove('Dark Missile','mb1',.2,function()
  1684. tweenTable={}
  1685. animPlaying=true
  1686. deb=true
  1687. canRunLeg=true
  1688. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1689. bg=true
  1690. idle=false
  1691. basicsound:Play()
  1692. if basicswitch==false then
  1693. Tween(rw,cfn()*ang(mr(-100),mr(45),0),0.2)
  1694. Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
  1695. else
  1696. Tween(lw,cfn()*ang(mr(-100),mr(-45),0),0.2)
  1697. Tween(rj,cfn()*ang(0,mr(45),0),0.2)
  1698. end
  1699. wait(0.06)
  1700. local bullet=cp(tube,"Really black",Vector3.new(1,1,1),false,false)
  1701. bullet.Transparency=1
  1702. if basicswitch==false then
  1703. bullet.CFrame=righthandle.CFrame
  1704. bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1705. basicswitch=true
  1706. else
  1707. bullet.CFrame=lefthandle.CFrame
  1708. bullet.CFrame=CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1709. basicswitch=false
  1710. end
  1711. local bv=int('BodyVelocity',bullet)
  1712. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1713. bv.Velocity=bullet.CFrame.lookVector*150
  1714. local bulletfx=cp(tube,"Bright red",Vector3.new(1,1,1),true,false)
  1715. if basicswitch==false then
  1716. bulletfx.BrickColor=BrickColor.new('Really black')
  1717. end
  1718. bulletfx.CFrame=bullet.CFrame
  1719. bulletfx.Material='Neon'
  1720. sphere(bulletfx)
  1721. local angle=0
  1722. local bfsd=basicswitch
  1723. local lastpoint=bulletfx.CFrame
  1724. addCoolDown('Dark Missile')
  1725. addMover(bullet,0.8,function()
  1726. angle=angle+1
  1727. local angles=CFrame.Angles(math.rad(angle),mr(angle),0)
  1728. bulletfx.CFrame=bullet.CFrame
  1729. bulletfx.CFrame=bulletfx.CFrame*angles
  1730. if (lastpoint.p-bulletfx.CFrame.p).magnitude>1 then
  1731. local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Really black',angles)
  1732. --local ran=math.random(2)
  1733. if bfsd==true then
  1734. line.BrickColor=BrickColor.new('Bright red')
  1735. end
  1736. addFx(line,0.05,'destroy',function()
  1737. line.blok.Scale=line.blok.Scale+Vector3.new(0.05,0,0.05)
  1738. line.Transparency=line.Transparency+0.05
  1739. end)
  1740. lastpoint=bulletfx.CFrame
  1741. end
  1742. end)
  1743. bullet.Touched:connect(function(p)
  1744. if not p:isDescendantOf(ch) then
  1745. local thing
  1746. local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
  1747. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  1748. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  1749. thing=v
  1750. break
  1751. end
  1752. end
  1753. local explosound=getSound(142070128)
  1754. explosound.Volume=0.8
  1755. explosound.Pitch=1.2
  1756. explosound.Parent=p
  1757. explosound:Play()
  1758. local position=bullet.CFrame
  1759. if thing and thing.Parent then
  1760. dealDamage(thing.Parent,10,5)
  1761. end
  1762. local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1763. if bfsd==false then
  1764. blast.BrickColor=BrickColor.new('Bright red')
  1765. end
  1766. blast.Material='Neon'
  1767. local spm2=sphere(blast)
  1768. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
  1769. addFx(blast,0.05,"destroy",function()
  1770. spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
  1771. blast.Transparency=blast.Transparency+0.05
  1772. end)
  1773. bullet:Destroy()
  1774. bulletfx:Destroy()
  1775. end
  1776. end)
  1777. game.Debris:AddItem(bullet,2.5)
  1778. game.Debris:AddItem(bulletfx,2.5)
  1779. wait(0.1)
  1780. idle=true
  1781. reset()
  1782. deb=false
  1783. animPlaying=false
  1784. bg=false
  1785. end,20)
  1786.  
  1787. local dumbbox=nil
  1788. local dhand=nil
  1789. local darknum=1
  1790.  
  1791. addMove('Dark Slash','r',2,function()
  1792. local oldspeed=hum.WalkSpeed
  1793. hum.WalkSpeed=0
  1794. local meshd='http://www.roblox.com/asset/?id=12171188'
  1795. tweenTable={}
  1796. altTweenTable={}
  1797. deb=true
  1798. animPlaying=true
  1799. canRunLeg=true
  1800. startsound2:Play()
  1801. local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
  1802. sp.CFrame=tor.CFrame
  1803. sp.Transparency=0.5
  1804. local sph=sphere(sp)
  1805. addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
  1806. spawn(function()
  1807. for i=1,10 do
  1808. wait()
  1809. local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
  1810. local rnd=math.random(2)
  1811. if rnd==1 then
  1812. cool1.BrickColor=BrickColor.new('Bright red')
  1813. cool1.Material='Neon'
  1814. end
  1815. local ms1=blo(cool1)
  1816. cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1817. addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
  1818. end
  1819. end)
  1820. addCoolDown('Dark Slash')
  1821. local allahsword=cp(tube,'White',Vector3.new(1,1,1))
  1822. local critmultiplier=2.4
  1823. local spm=int('SpecialMesh',allahsword)
  1824. spm.MeshType='FileMesh'
  1825. spm.MeshId=meshd
  1826. allahsword.Transparency=1
  1827. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1828. local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
  1829. local col=BrickColor.new("Really black").Color
  1830. spm.TextureId=rbx..'132155326'
  1831. spm.Name='mesh'
  1832. spm.VertexColor=Vector3.new(0,0,0)
  1833. spm.Scale=Vector3.new(1,1,1)
  1834. addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
  1835. weld(ch['Right Arm'],allahsword,cfn(0,-4,-0.5)*ang(mr(110),0,mr(180)))
  1836. Tween(rj,cfn()*ang(0,mr(-90),0))
  1837. Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-55),mr(-35),0))
  1838. Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-55),mr(35),0))
  1839. Delay(0.08,function()
  1840. local tstvel=int('BodyVelocity',tor)
  1841. tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
  1842. tstvel.Velocity=tv*35
  1843. game.Debris:AddItem(tstvel,0.24)
  1844. end)
  1845. wait(0.22)
  1846. local hitbox=cp(tube,'White',Vector3.new(2,12,2))
  1847. hitbox.Transparency=1
  1848. hitbox.CFrame=allahsword.CFrame
  1849. dumbbox=hitbox
  1850. dumbhand=allahsword
  1851. swoosh:Play()
  1852. spawn(function()
  1853. for i=1,10 do
  1854. wait()
  1855. local trl=allahsword:clone()
  1856. trl.Parent=tube
  1857. trl.CFrame=allahsword.CFrame
  1858. if trl:findFirstChild('mesh') then
  1859. -- trl.mesh.VertexColor=Vector3.new(BrickColor.new('Bright red').Color.r,BrickColor.new('Bright red').Color.g,BrickColor.new('Bright red').Color.b)
  1860. end
  1861. addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
  1862. end
  1863. end)
  1864. addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) --[[hitbox.CFrame=allahsword.CFrame*ang(mr(-90),0,0)]] end)
  1865. hitbox.Touched:connect(function(v)
  1866. if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
  1867. --print'touched'
  1868. local can=false
  1869. if not v.Parent:findFirstChild('HitDeb') then
  1870. can=true
  1871. end
  1872. if can==true then
  1873. local sls=getSound(220834020)
  1874. sls.Pitch=1+(math.random(3)/10)
  1875. sls.Parent=v
  1876. sls:Play()
  1877. local db=Instance.new('StringValue',v.Parent)
  1878. db.Name='HitDeb'
  1879. game.Debris:AddItem(db,0.5)
  1880. dealDamage(v.Parent,15,2,critmultiplier)
  1881. end
  1882. end
  1883. end)
  1884. Tween(rj,cfn(0,0,0)*ang(mr(0),mr(90),0))
  1885. Tween(rw,cfn(0.5,0.8,0)*ang(mr(-80),mr(-35),0))
  1886. Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-90),mr(35),0))
  1887. wait(0.2)
  1888. hitbox:Destroy()
  1889. hum.WalkSpeed=oldspeed
  1890. reset()
  1891. animPlaying=false
  1892. canRunLeg=false
  1893. deb=false
  1894. end,80)
  1895.  
  1896. --[[
  1897. addMove('Dark Slash2','r',2,function()
  1898. --http://www.roblox.com/asset/?id=12171188
  1899. local oldspeed=hum.WalkSpeed
  1900. if oldspeed==0 then
  1901. oldspeed=16
  1902. end
  1903. hum.WalkSpeed=0
  1904. local meshd='http://www.roblox.com/asset/?id=12171188'
  1905. tweenTable={}
  1906. altTweenTable={}
  1907. deb=true
  1908. idle=false
  1909. animPlaying=true
  1910. canRunLeg=true
  1911. tweenTable={}
  1912. altTweenTable={}
  1913. startsound3:Play()
  1914. Tween(rj,cfn(),1)
  1915. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1916. local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
  1917. sp.CFrame=tor.CFrame
  1918. sp.Transparency=0.5
  1919.  
  1920. local sph=sphere(sp)
  1921. addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
  1922. spawn(function()
  1923. for i=1,10 do
  1924. wait()
  1925. local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
  1926. local ms1=blo(cool1)
  1927. cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1928. addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
  1929. end
  1930. end)
  1931.  
  1932. --addCoolDown('Dark Slash2')
  1933. local allahsword=cp(tube,'White',Vector3.new(1,1,1))
  1934.  
  1935.  
  1936. local spm=int('SpecialMesh',allahsword)
  1937. spm.MeshType='FileMesh'
  1938. spm.MeshId=meshd
  1939. allahsword.Transparency=1
  1940. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1941. local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
  1942. local col=BrickColor.new("Really black").Color
  1943. spm.TextureId=rbx..'132155326'
  1944. spm.Name='mesh'
  1945. spm.VertexColor=Vector3.new(0,0,0)
  1946. spm.Scale=Vector3.new(1,1,1)
  1947. addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
  1948. weld(ch['Right Arm'],allahsword,cfn(0,-4,-2)*ang(-180,0,mr(-25)))--(-25)
  1949. local hitbox=cp(tube,'White',Vector3.new(2,12,2))
  1950. hitbox.Transparency=1
  1951. hitbox.CFrame=allahsword.CFrame
  1952. dumbbox=hitbox
  1953. dumbhand=allahsword
  1954. Tween(rj,cfn()*ang(0,mr(90),0))
  1955. Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-90),mr(-35),0))
  1956. Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-90),mr(35),0))
  1957.  
  1958. Delay(0.08,function()
  1959. local tstvel=int('BodyVelocity',tor)
  1960. tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
  1961. tstvel.Velocity=tv*35
  1962. game.Debris:AddItem(tstvel,0.24)
  1963. end)
  1964.  
  1965. wait(0.22)
  1966. swoosh:Play()
  1967. spawn(function()
  1968. for i=1,10 do
  1969. wait()
  1970. local trl=allahsword:clone()
  1971. trl.Parent=tube
  1972. trl.CFrame=allahsword.CFrame
  1973. addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
  1974. end
  1975. end)
  1976. addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) end)
  1977. hitbox.Touched:connect(function(v)
  1978. if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
  1979. --print'touched'
  1980. local can=false
  1981. if not v.Parent:findFirstChild('HitDeb') then
  1982. can=true
  1983. end
  1984. if can==true then
  1985. local sls=getSound(220834020)
  1986. sls.Pitch=1+(math.random(3)/10)
  1987. sls.Parent=v
  1988. sls:Play()
  1989. local db=Instance.new('StringValue',v.Parent)
  1990. db.Name='HitDeb'
  1991. game.Debris:AddItem(db,0.5)
  1992. dealDamage(v.Parent,20+math.random(20),10)
  1993. end
  1994. end
  1995. end)
  1996. Tween(rj,cfn(0,0,0)*ang(mr(0),mr(-90),0))
  1997. Tween(rw,cfn(0.5,0.8,0)*ang(mr(-20),mr(-35),0)) --(-10)
  1998. Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-20),mr(35),0))
  1999. wait(0.2)
  2000. hitbox:Destroy()
  2001. hum.WalkSpeed=oldspeed
  2002. reset()
  2003. deb=false
  2004. animPlaying=false
  2005. canRunLeg=false
  2006. end)
  2007. ]]
  2008.  
  2009. addMove('Origin Beam','mb1,mb1,e',12,function()
  2010. tweenTable={}
  2011. altTweenTable={}
  2012. animPlaying=true
  2013. deb=true
  2014. apoc:Play()
  2015. spawn(function()
  2016. for i=1,15 do
  2017. wait()
  2018. local fx=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2019. fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2020. local bl=blo(fx)
  2021. local ran=math.random(2)
  2022. if ran==1 then
  2023. fx.BrickColor=BrickColor.new('Bright red')
  2024. end
  2025. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  2026. local fx=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2027. local ran=math.random(2)
  2028. if ran==1 then
  2029. fx.BrickColor=BrickColor.new('Bright red')
  2030. end
  2031. fx.CFrame=lefthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2032. local bl=blo(fx)
  2033. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  2034. end
  2035. end)
  2036. Tween(rw,cfn()*ang(mr(-90),mr(45),0))
  2037. Tween(lw,cfn()*ang(mr(-90),mr(-45),0))
  2038. wait(0.2)
  2039. Tween(rw,cfn()*ang(mr(-90),mr(-45),0))
  2040. Tween(lw,cfn()*ang(mr(-90),mr(45),0))
  2041. wait(0.5)
  2042. apoc.Volume=2
  2043. local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
  2044. bg=true
  2045. local ray = Ray.new(righthandle.CFrame.p, (mouse.Hit.p - righthandle.CFrame.p).unit * 300)
  2046. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  2047. local distance = (righthandle.CFrame.p - position).magnitude
  2048. beam.Size = Vector3.new(2, distance, 2)
  2049. beam.Material='Neon'
  2050. beam.CFrame = CFrame.new(righthandle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)*ang(mr(-90),0,0)
  2051. if part --[[and part.Parent]] then
  2052. --if part.Parent:findFirstChild'Humanoid' then
  2053. -- dealDamage(part.Parent,5,3,2)
  2054. --end
  2055. local region=CreateRegion3FromLocAndSize(m.Hit.p,Vector3.new(6,6,6))
  2056. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  2057. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  2058. thing=v
  2059. break
  2060. end
  2061. end
  2062. if thing then
  2063. dealDamage(thing.Parent,5,3,2)
  2064. end
  2065. end
  2066. local msh=cyl(beam)
  2067. local up=false
  2068. addFx(beam,0.02,nil,function()
  2069. -- local mn=depleteMana(10)
  2070. -- if mn then
  2071. ray = Ray.new(righthandle.CFrame.p, (mouse.Hit.p - righthandle.CFrame.p).unit * 300)
  2072. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  2073. if part and part.Parent then
  2074. if part.Parent:findFirstChild'Humanoid' then
  2075. dealDamage(part.Parent,2,3,2)
  2076. end
  2077. end
  2078. local distance = (righthandle.CFrame.p - position).magnitude
  2079. beam.Size = Vector3.new(2, distance, 2)
  2080. beam.CFrame = CFrame.new(righthandle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)*ang(mr(-90),0,0)
  2081. local brck=cp(tube,'Really black',Vector3.new(3.5,3.5,3.5),true)
  2082. brck.CFrame=m.Hit*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2083. brck.Material='Neon'
  2084. local ran=math.random(2)
  2085. if ran==1 then
  2086. brck.BrickColor=BrickColor.new('Bright red')
  2087. end
  2088. local bm=blo(brck)
  2089. addFx(brck,0.07,'destroy',function() bm.Scale=bm.Scale+Vector3.new(0.1,0.1,0.1) brck.Transparency=brck.Transparency+0.07 end)
  2090. --end
  2091. end)
  2092. wait(1)
  2093. addCoolDown('Origin Beam')
  2094. addFx(beam,0.07,'destroy',function() beam.Transparency=beam.Transparency+0.07 msh.Scale=msh.Scale-Vector3.new(0.07,0,0.07) end)
  2095. animPlaying=false
  2096. deb=false
  2097. bg=false
  2098. apoc.Volume=1
  2099. end,180)
  2100.  
  2101. addMove('Nightmare Overture','z',140,function()
  2102. if Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 then
  2103. hum.WalkSpeed=0
  2104. animPlaying=true
  2105. local ev
  2106. local tfn=tor.CFrame
  2107. deb=true
  2108. local done=false
  2109. local done2=false
  2110. local stakes={}
  2111. local dmds={}
  2112. tweenTable={}
  2113. altTweenTable={}
  2114. --Tween(rj,cfn()*ang(mr(45),0,0))
  2115. Tween(rw,cfn()*ang(mr(-110),mr(25),0),0.05)
  2116. Tween(lw,cfn()*ang(mr(-110),mr(-25),0),0.05)
  2117. resetLegs()
  2118. wait(0.5)
  2119. local circ=cp(tube,'Really black',Vector3.new(34,1,34),true)
  2120. circ.Transparency=1
  2121. circ.CFrame=tor.CFrame*CFrame.new(0,-3.3,0)
  2122. local d=int('Decal',circ)
  2123. d.Face='Top'
  2124. d.Texture=magcd
  2125.  
  2126. local stake1=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2127. local cm=cyl(stake1)
  2128. cm.Scale=Vector3.new(0,0,0)
  2129. stake1.CFrame=tfn*cfn(9,3,0)
  2130. stake1.Transparency=1
  2131. stake1.Material='Neon'
  2132. local snd=getSound(231917773)
  2133. snd.Parent=stake1
  2134. snd.Volume=2
  2135. snd:Play()
  2136. addFx(stake1,0.1,nil,function()
  2137. stake1.Transparency=stake1.Transparency-0.1
  2138. cm.Scale=cm.Scale+Vector3.new(0.1,0.1,0.1)
  2139. end)
  2140. table.insert(stakes,stake1)
  2141. local sdm1=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2142. sdm1.CFrame=stake1.CFrame
  2143. sdm1.Transparency=1
  2144. local sdm1m=newSpm(sdm1)
  2145. sdm1m.MeshId=rbx..lib.diamond
  2146. sdm1m.Scale=Vector3.new(2,3,2)
  2147. sdm1m.Scale=Vector3.new(0,0,0)
  2148. addFx(sdm1,0.05,nil,function()
  2149. sdm1.CFrame=sdm1.CFrame*CFrame.new(0,0.6,0)
  2150. sdm1m.Scale=sdm1m.Scale+Vector3.new(0.1,0.15,0.1)
  2151. sdm1.Transparency=sdm1.Transparency-0.05
  2152. --sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2153. end)
  2154. table.insert(dmds,sdm1)
  2155. local angle=0
  2156. spawn(function()
  2157. repeat wait()
  2158. angle=angle+1
  2159. circ.CFrame=circ.CFrame*ang(0,mr(1),0)
  2160. until done==true
  2161. end)
  2162. spawn(function() --crown
  2163. repeat wait(0.1)
  2164. local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2165. crn.CFrame=tor.CFrame*cfn(0,-5.5,0)
  2166. local ms=newSpm(crn)
  2167. ms.TextureId=rbx..'132155326'
  2168. ms.MeshId=rbx..lib.crown
  2169. ms.VertexColor=Vector3.new(0,0,0)
  2170. ms.Scale=Vector3.new(1.5,1,1.5)
  2171. --angle=angle+1
  2172. --circ.CFrame=circ.CFrame*ang(0,mr(1),0)
  2173. addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.8,0.05,0.8) end)
  2174. local bgmc=bigmagic:clone()
  2175. bgmc.Parent=ch.Head
  2176. bgmc.Volume=0.3
  2177. bgmc.Pitch=0.8
  2178. bgmc:Play()
  2179. until done2==true
  2180. end)
  2181. spawn(function()
  2182. wait(0.4)
  2183. repeat wait()
  2184. sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2185. until done==true
  2186. end)
  2187. wait(0.1)
  2188. local stake2=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2189. local cm2=cyl(stake2)
  2190. cm2.Scale=Vector3.new(0,0,0)
  2191. stake2.CFrame=tfn*cfn(-9,3,0)
  2192. stake2.Transparency=1
  2193. stake2.Material='Neon'
  2194. local snd=getSound(231917773)
  2195. snd.Parent=stake2
  2196. snd.Volume=2
  2197. snd:Play()
  2198. addFx(stake2,0.1,nil,function()
  2199. stake2.Transparency=stake2.Transparency-0.1
  2200. cm2.Scale=cm2.Scale+Vector3.new(0.1,0.1,0.1)
  2201. end)
  2202. table.insert(stakes,stake2)
  2203. local sdm2=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2204. sdm2.CFrame=stake2.CFrame
  2205. sdm2.Transparency=1
  2206. local sdm2m=newSpm(sdm2)
  2207. sdm2m.MeshId=rbx..lib.diamond
  2208. sdm2m.Scale=Vector3.new(2,3,2)
  2209. sdm2m.Scale=Vector3.new(0,0,0)
  2210. addFx(sdm2,0.05,nil,function()
  2211. sdm2.CFrame=sdm2.CFrame*CFrame.new(0,0.6,0)
  2212. sdm2m.Scale=sdm2m.Scale+Vector3.new(0.1,0.15,0.1)
  2213. sdm2.Transparency=sdm2.Transparency-0.05
  2214. --sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2215. end)
  2216. spawn(function()
  2217. wait(0.4)
  2218. repeat wait()
  2219. sdm2.CFrame=CFrame.new(sdm2.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2220. until done==true
  2221. end)
  2222. table.insert(dmds,sdm2)
  2223. wait(0.1)
  2224. local stake3=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2225. local cm3=cyl(stake3)
  2226. cm3.Scale=Vector3.new(0,0,0)
  2227. stake3.CFrame=tfn*cfn(0,3,9)
  2228. stake3.Transparency=1
  2229. stake3.Material='Neon'
  2230. local snd=getSound(231917773)
  2231. snd.Parent=stake3
  2232. snd.Volume=2
  2233. snd:Play()
  2234. addFx(stake3,0.1,nil,function()
  2235. stake3.Transparency=stake3.Transparency-0.1
  2236. cm3.Scale=cm3.Scale+Vector3.new(0.1,0.1,0.1)
  2237. end)
  2238. table.insert(stakes,stake3)
  2239. local sdm3=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2240. sdm3.CFrame=stake3.CFrame
  2241. sdm3.Transparency=1
  2242. local sdm3m=newSpm(sdm3)
  2243. sdm3m.MeshId=rbx..lib.diamond
  2244. sdm3m.Scale=Vector3.new(2,3,2)
  2245. sdm3m.Scale=Vector3.new(0,0,0)
  2246. addFx(sdm3,0.05,nil,function()
  2247. sdm3.CFrame=sdm3.CFrame*CFrame.new(0,0.6,0)
  2248. sdm3m.Scale=sdm3m.Scale+Vector3.new(0.1,0.15,0.1)
  2249. sdm3.Transparency=sdm3.Transparency-0.05
  2250. --sdm3.CFrame=CFrame.new(sdm3.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2251. end)
  2252. spawn(function()
  2253. wait(0.4)
  2254. repeat wait()
  2255. sdm3.CFrame=CFrame.new(sdm3.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2256. until done==true
  2257. end)
  2258. table.insert(dmds,sdm3)
  2259. wait(0.1)
  2260. local stake4=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2261. local cm4=cyl(stake4)
  2262. cm4.Scale=Vector3.new(0,0,0)
  2263. stake4.CFrame=tfn*cfn(0,3,-9)
  2264. stake4.Transparency=1
  2265. stake4.Material='Neon'
  2266. local snd=getSound(231917773)
  2267. snd.Parent=stake4
  2268. snd.Volume=2
  2269. snd:Play()
  2270. addFx(stake4,0.1,nil,function()
  2271. stake4.Transparency=stake4.Transparency-0.1
  2272. cm4.Scale=cm4.Scale+Vector3.new(0.1,0.1,0.1)
  2273. end)
  2274. table.insert(stakes,stake4)
  2275. local sdm4=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2276. sdm4.CFrame=stake4.CFrame
  2277. sdm4.Transparency=1
  2278. local sdm4m=newSpm(sdm4)
  2279. sdm4m.MeshId=rbx..lib.diamond
  2280. sdm4m.Scale=Vector3.new(2,3,2)
  2281. sdm4m.Scale=Vector3.new(0,0,0)
  2282. addFx(sdm4,0.05,nil,function()
  2283. sdm4.CFrame=sdm4.CFrame*CFrame.new(0,0.6,0)
  2284. sdm4m.Scale=sdm4m.Scale+Vector3.new(0.1,0.15,0.1)
  2285. sdm4.Transparency=sdm4.Transparency-0.05
  2286. --sdm4.CFrame=CFrame.new(sdm4.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2287. end)
  2288. spawn(function()
  2289. wait(0.4)
  2290. repeat wait()
  2291. sdm4.CFrame=CFrame.new(sdm4.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2292. until done==true
  2293. end)
  2294. table.insert(dmds,sdm4)
  2295. wait(0.1)
  2296. local bv=int('BodyVelocity',tor)
  2297. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2298. bv.Velocity=Vector3.new(0,7,0)
  2299. rise:Play()
  2300. local tdia=cp(tube,'Really black',Vector3.new(6,6,6))
  2301. tdia.Transparency=1
  2302. local tdiam=newSpm(tdia)
  2303. tdiam.MeshId=rbx..lib.diamond
  2304. tdiam.Name='mesh'
  2305. tdiam.Scale=Vector3.new(6,8,6)
  2306. tdiam.Scale=Vector3.new(0,0,0)
  2307. addFx(tdiam,0.05,nil,function()
  2308. tdiam.Scale=tdiam.Scale+Vector3.new(0.36,0.48,0.38)
  2309. tdia.Transparency=tdia.Transparency-0.05
  2310. end)
  2311.  
  2312. weld(tor,tdia,cfn())
  2313. wait(3)
  2314. bv.Velocity=Vector3.new(0,0,0)
  2315. done2=true
  2316. for _,v in pairs(stakes) do
  2317. wait(0.1)
  2318. local nsnd=getSound(231917773)
  2319. snd.Parent=v
  2320. snd.Volume=2
  2321. snd.Pitch=1.3
  2322. snd:Play()
  2323. addFx(v,0.05,'destroy',function() v.mesh.Scale=v.mesh.Scale-Vector3.new(0.05,0.05,0.05) v.Transparency=v.Transparency+0.05 end)
  2324. end
  2325. local dm=1
  2326. local lastd=false
  2327. ev=m.Button1Down:connect(function()
  2328. if dm~=5 then
  2329. ultdi.Volume=2.4
  2330. ultdi:Play()
  2331. local pulse=tdia:clone()
  2332. pulse.Anchored=true
  2333. pulse.CFrame=tdia.CFrame
  2334. pulse.Parent=tube
  2335. pulse.BrickColor=BrickColor.new('Bright red')
  2336. addFx(pulse,0.1,'destroy',function() pulse.mesh.Scale=pulse.mesh.Scale+Vector3.new(0.4,0.4,0.4) pulse.Transparency=pulse.Transparency+0.1 end)
  2337. local di=dmds[dm]:clone()
  2338. debris:AddItem(di,6)
  2339. di.CFrame=dmds[dm].CFrame
  2340. di.Parent=tube
  2341. dmds[dm]:Destroy()
  2342. di.Anchored=false
  2343. di:BreakJoints(0)
  2344. local nbv=int('BodyVelocity',di)
  2345. nbv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2346. di.CFrame=CFrame.new(di.CFrame.p,Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  2347. nbv.Velocity=di.CFrame.lookVector*150
  2348. di.CFrame=di.CFrame*ang(mr(-90),0,0)
  2349. dm=dm+1
  2350. local bulletfx=di
  2351. addMover(di,0.8,function()
  2352. --bullet.CFrame=bullet.CFrame*angles
  2353. local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2354. fxp.CFrame=bulletfx.CFrame*ang(mr(-90),0,0)
  2355. local bmesh=int('SpecialMesh',fxp)
  2356. bmesh.MeshType='FileMesh'
  2357. bmesh.MeshId=rbx..lib.ring
  2358. bmesh.Scale=Vector3.new(2.5,2.5,2.5)
  2359. addFx(fxp,0.07,'destroy',function() bmesh.Scale=bmesh.Scale+Vector3.new(0.2,0.2,0) fxp.Transparency=fxp.Transparency+0.07 end)
  2360. end)
  2361. di.Touched:connect(function(part)
  2362. if part:IsDescendantOf(ch)==false then
  2363. di:Destroy()
  2364. local blast=cp(tube,'Really black',Vector3.new(20,20,20),true)
  2365. blast.CFrame=di.CFrame
  2366. local sp=sphere(blast)
  2367. blast.Material='Neon'
  2368. sp.Scale=Vector3.new(0.05,0.05,0.05)
  2369. local bfx=blast:clone()
  2370. bfx.Parent=tube
  2371. bfx.CFrame=blast.CFrame
  2372. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
  2373. local people={}
  2374. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2375. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2376. local can=false
  2377. if not v.Parent:findFirstChild('HitDeb') then
  2378. can=true
  2379. end
  2380. if can==true then
  2381. local db=Instance.new('StringValue',v.Parent)
  2382. db.Name='HitDeb'
  2383. game.Debris:AddItem(db,0.5)
  2384. local humin=v.Parent.Humanoid
  2385. if humin then
  2386. local php=humin.Health
  2387. dealDamage(humin.Parent,25,3,2,0.05)
  2388.  
  2389. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2390. print('equal')
  2391. humin:TakeDamage(40)
  2392. end
  2393. end
  2394. end
  2395. end
  2396. end
  2397. bfx.BrickColor=BrickColor.new('Bright red')
  2398. -- bfx.Mesh.Scale=Vector3.new(0,0,0)
  2399. bfx:clearAllChildren()
  2400. local sp2=sphere(bfx)
  2401. sp2.Scale=Vector3.new(0,0,0)
  2402. addFx(bfx,0.007,'destroy',function() sp2.Scale=sp2.Scale+Vector3.new(0.1,0.1,0.1) bfx.Transparency=bfx.Transparency+0.007 end)
  2403. addFx(blast,0.007,'destroy',function() sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) blast.Transparency=blast.Transparency+0.007 end)
  2404. local hg=giantexplosion:clone()
  2405. hg.Volume=10
  2406. hg.Parent=blast
  2407. hg:Play()
  2408. end
  2409. end)
  2410. else
  2411. ev:Disconnect()
  2412. explodcharg:Play()
  2413. repeat wait()
  2414. local pulse=tdia:clone()
  2415. pulse.Anchored=true
  2416. pulse.CFrame=tdia.CFrame
  2417. pulse.Parent=tube
  2418. pulse.BrickColor=BrickColor.new('Bright red')
  2419. pulse:clearAllChildren()
  2420. local pm=tdiam:clone()
  2421. pm.Parent=pulse
  2422. addFx(pulse,0.1,'destroy',function() pm.Scale=pm.Scale+Vector3.new(0.4,0.4,0.4) pulse.Transparency=pulse.Transparency+0.1 end)
  2423. until explodcharg.IsPlaying==false
  2424. circ:Destroy()
  2425. addFx(tdia,0.07,'destroy',function() tdia.Transparency=tdia.Transparency+0.07 end)
  2426. hum.WalkSpeed=regws
  2427. deb=false
  2428. animPlaying=false
  2429. bv:Destroy()
  2430. --mega explosion
  2431. local blast=cp(tube,'Really black',Vector3.new(60,60,60),true)
  2432. blast.CFrame=tor.CFrame
  2433. local sp=sphere(blast)
  2434. blast.Material='Neon'
  2435. blast.Transparency=0.1
  2436. sp.Scale=Vector3.new(0.05,0.05,0.05)
  2437. local bfx=blast:clone()
  2438. bfx.Parent=tube
  2439. bfx.CFrame=blast.CFrame
  2440. bfx.Transparency=0.1
  2441. local rng=cp(tube,'Bright red',Vector3.new(60,60,60),true)
  2442. rng.CFrame=blast.CFrame*ang(mr(-90),0,0)
  2443. local rn=newSpm(rng)
  2444. rn.MeshId=rbx..lib.ring
  2445. rn.Scale=Vector3.new(90,40,90)
  2446. addFx(rng,0.005,'destroy',function()
  2447. rn.Scale=rn.Scale+Vector3.new(5,5,0)
  2448. rng.Transparency=rng.Transparency+0.005
  2449. end)
  2450.  
  2451. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
  2452. local people={}
  2453.  
  2454.  
  2455. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},150)) do
  2456. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2457. local can=false
  2458. if not v.Parent:findFirstChild('HitDeb') then
  2459. can=true
  2460. end
  2461. if can==true then
  2462. local thing=v
  2463. local db=Instance.new('StringValue',v.Parent)
  2464. db.Name='HitDeb'
  2465. game.Debris:AddItem(db,0.5)
  2466. local humin=v.Parent.Humanoid
  2467. if humin then
  2468. local php=humin.Health
  2469. dealDamage(humin.Parent,.3*humin.MaxHealth,3,2,0.05)
  2470. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2471. print('equal')
  2472. humin:TakeDamage(30)
  2473. end
  2474. end
  2475. if thing and thing.Parent then
  2476. if thing.Parent:findFirstChild('Head') then
  2477. displayText(thing.Parent.Head,'Cursed','Really black')
  2478. else
  2479. displayText(thing,'Cursed','Really black')
  2480. end
  2481. end
  2482. if thing and thing.Parent then
  2483. dealDamage(thing.Parent,5,5)
  2484. local humin=thing.Parent.Humanoid
  2485. spawn(function()
  2486. for i=1,10 do
  2487. wait(1)
  2488. if thing.Parent then
  2489. dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)
  2490. end
  2491. end
  2492. end)
  2493. end
  2494. end
  2495. end
  2496. end
  2497. bfx.BrickColor=BrickColor.new('Bright red')
  2498. done=true
  2499. -- bfx.Mesh.Scale=Vector3.new(0,0,0)
  2500. bfx:clearAllChildren()
  2501. local sp2=sphere(bfx)
  2502. sp2.Scale=Vector3.new(0,0,0)
  2503. local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
  2504. mgp.Transparency=1
  2505. mgp.CFrame=blast.CFrame
  2506. game.Debris:AddItem(mgp,8)
  2507. addFx(bfx,0.004,'destroy',function() sp2.Scale=sp2.Scale+Vector3.new(0.09,0.09,0.09) bfx.Transparency=bfx.Transparency+0.004 end)
  2508. addFx(blast,0.004,'destroy',function() sp.Scale=sp.Scale+Vector3.new(0.09,0.09,0.09) blast.Transparency=blast.Transparency+0.004 end)
  2509. local hg=getSound(221920822)
  2510. hg.Pitch=0.8
  2511. hg.Volume=10
  2512. hg.Parent=mgp
  2513. hg:Play()
  2514. addCoolDown('Nightmare Overture')
  2515. end
  2516. end)
  2517. --end
  2518. else
  2519. return false
  2520. end
  2521. end,800)
  2522.  
  2523. --links
  2524. --[[
  2525. https://gyazo.com/2bb44f565b143e8025e5cdfc555a641a
  2526. https://gyazo.com/20a0fd027484f894623cd8d387196c09
  2527. ]]
  2528.  
  2529. addMove('Dark Spikes','t',0.4,function()
  2530. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2531. local lv=tor.CFrame
  2532. tweenTable={}
  2533. animPlaying=true
  2534. deb=true
  2535. canRunLeg=true
  2536. magictone1:Play()
  2537. Tween(rj,cfn()*ang(0,mr(25),0),0.2)
  2538. Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
  2539. wait(0.2)
  2540. Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
  2541. Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
  2542. Tween(neck,cfn()*ang(0,mr(55),0))
  2543. local spot=4
  2544. addCoolDown('Dark Spikes')
  2545. for i=1,10 do
  2546. wait(0.1)
  2547. local v=lv.lookVector*spot
  2548. --print(v)
  2549. spot=spot+14
  2550. local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
  2551. spike.CFrame=lv*CFrame.new(0,0,-spot)
  2552. local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
  2553. local dml=cyl(dam)
  2554. local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
  2555. local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
  2556. if bhit then
  2557. spike.CFrame=pos*CFrame.new(0,0,0)
  2558. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  2559. mgp.Transparency=1
  2560. mgp.CFrame=spike.CFrame
  2561. game.Debris:AddItem(mgp,2)
  2562. local sn=spexp:clone()
  2563. sn.Parent=mgp
  2564. sn.Volume=2
  2565. sn:Play()
  2566. dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
  2567. local blast=dam
  2568. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  2569. local people={}
  2570. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2571. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2572. local can=false
  2573. if not v.Parent:findFirstChild('HitDeb') then
  2574. can=true
  2575. end
  2576. if can==true then
  2577. local db=Instance.new('StringValue',v.Parent)
  2578. db.Name='HitDeb'
  2579. game.Debris:AddItem(db,0.2)
  2580. local humin=v.Parent.Humanoid
  2581. if humin then
  2582. local php=humin.Health
  2583. dealDamage(humin.Parent,10+math.random(3),2)
  2584. local testvel=int('BodyVelocity',v)
  2585. testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2586. testvel.Velocity=lv.lookVector*100
  2587. game.Debris:addItem(testvel,1)
  2588. humin.Sit=true
  2589. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2590. print('equal')
  2591. humin:TakeDamage(20)
  2592. end
  2593. end
  2594. end
  2595. end
  2596. end
  2597. local cl=cyl(spike)
  2598. addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
  2599. addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end)
  2600. else
  2601. spike:Destroy()
  2602. end
  2603. end
  2604. wait(0.7)
  2605. deb=false
  2606. canRunLeg=false
  2607. animPlaying=false
  2608. reset()
  2609. end,30)
  2610.  
  2611. mouse.Button1Down:connect(function()
  2612. if not deb then
  2613. rcombostring=rcombostring..'mb1'
  2614. executeMove('Dark Missile')
  2615. --print('movers:' .. #movers)
  2616. --print('fx:' .. #fx)
  2617. --print('tweens: ' .. #tweenTable)
  2618. end
  2619. end)
  2620.  
  2621. local vt
  2622. local dodgecool=false
  2623.  
  2624. iPart=function(tab) --tigrebloodd
  2625. local v=Instance.new(tab.type or 'Part')
  2626. if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
  2627. v.CanCollide=false
  2628. v.TopSurface=0 v.BottomSurface=0
  2629. v.Size=v3(tab[2],tab[3],tab[4])
  2630. if tab.co then v.BrickColor=bn(tab.co) end
  2631. if tab.tr then v.Transparency=tab.tr end
  2632. if tab.rf then v.Reflectance=tab.rf end
  2633. if tab.cf then v.CFrame=tab.cf end
  2634. if tab.an then v.Anchored=tab.an end
  2635. v.Parent=tab[1]
  2636. LastMade=v
  2637. return v
  2638. end
  2639.  
  2640. iNew=function(tab) --tigrebloodd
  2641. local v=Instance.new(tab[1])
  2642. for Ind,Val in pairs(tab) do
  2643. if Ind~=1 and Ind~=2 then
  2644. v[Ind] = Val
  2645. end
  2646. end
  2647. v.Parent=tab[2]==0 and LastMade or tab[2]
  2648. LastMade=v
  2649. return v
  2650. end
  2651.  
  2652. -- Antiboomz0r's functions -----------------------------------------------------------------
  2653.  
  2654. local ppart = iPart{nil,0.2,0.2,0.2}
  2655. ppart.Material = "SmoothPlastic"
  2656. ppart.TopSurface = "SmoothNoOutlines"
  2657. ppart.BottomSurface = "SmoothNoOutlines"
  2658. ppart.RightSurface = "SmoothNoOutlines"
  2659. ppart.LeftSurface = "SmoothNoOutlines"
  2660. ppart.Transparency=0
  2661. ppart.Anchored=true
  2662. --ppart.Parent=tube
  2663.  
  2664. local function CFrameFromTopBack(at, top, back)
  2665. local right = top:Cross(back)
  2666. return CFrame.new(at.x, at.y, at.z,
  2667. right.x, top.x, back.x,
  2668. right.y, top.y, back.y,
  2669. right.z, top.z, back.z)
  2670. end
  2671.  
  2672. function Triangle(a, b, c)
  2673. local edg1 = (c-a):Dot((b-a).unit)
  2674. local edg2 = (a-b):Dot((c-b).unit)
  2675. local edg3 = (b-c):Dot((a-c).unit)
  2676. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2677. a, b, c = a, b, c
  2678. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2679. a, b, c = b, c, a
  2680. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2681. a, b, c = c, a, b
  2682. else
  2683. print("unreachable")
  2684. end
  2685. local len1 = (c-a):Dot((b-a).unit)
  2686. local len2 = (b-a).magnitude - len1
  2687. local width = (a + (b-a).unit*len1 - c).magnitude
  2688. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2689. local list = {}
  2690. if len1 > 0.01 then
  2691. local w1 = iNew{
  2692. "WedgePart",
  2693. Pack,
  2694. FormFactor="Custom",
  2695. BrickColor=ppart.BrickColor,
  2696. Transparency=ppart.Transparency,
  2697. Reflectance=ppart.Reflectance,
  2698. Material=ppart.Material,
  2699. CanCollide=ppart.CanCollide
  2700. }
  2701. local sz = v3(0.2, width, len1)
  2702. w1.Size = sz
  2703. local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size}
  2704. w1.Parent=tube
  2705. w1:BreakJoints()
  2706. w1.Anchored = true
  2707. w1.Transparency = 0.7
  2708. Spawn(function()
  2709. for i=0,1,0.1 do
  2710. wait()
  2711. w1.Transparency=w1.Transparency+0.03
  2712. end
  2713. end)
  2714. w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2)
  2715. table.insert(list,w1)
  2716. end
  2717. if len2 > 0.01 then
  2718. local w2 = iNew{
  2719. "WedgePart",
  2720. Pack,
  2721. FormFactor="Custom",
  2722. BrickColor=ppart.BrickColor,
  2723. Transparency=ppart.Transparency,
  2724. Reflectance=ppart.Reflectance,
  2725. Material=ppart.Material,
  2726. CanCollide=ppart.CanCollide
  2727. }
  2728. local sz = v3(0.2, width, len2)
  2729. w2.Size = sz
  2730. local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size}
  2731. w2.Parent=tube
  2732. w2:BreakJoints()
  2733. w2.Anchored = true
  2734. w2.Transparency = 0.7
  2735. Spawn(function()
  2736. for i=0,1,0.1 do
  2737. wait()
  2738. w2.Transparency=w2.Transparency+0.03
  2739. end
  2740. end)
  2741. w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2)
  2742. table.insert(list,w2)
  2743. end
  2744. return unpack(list)
  2745. end
  2746.  
  2747. bclf=ch['Right Arm'].CFrame
  2748. scfr=bclf
  2749.  
  2750. --[[
  2751. while wait() do--test
  2752.  
  2753. local h=3.8
  2754. local a,b=Triangle(scfr*CFrame.new(0,h/2,0).p,scfr*CFrame.new(0,-h/2,0).p,scfr*CFrame.new(0,h/2,0).p)
  2755. scfr=bclf
  2756. bclf=ch['Right Arm'].CFrame
  2757. local a,b=Triangle(bclf*CFrame.new(0,h/2,0).p,bclf*CFrame.new(0,-h/2,0).p,bclf*CFrame.new(0,h/2,0).p)
  2758. print(a.Parent)
  2759. print(a.CFrame)
  2760. end
  2761. ]]
  2762.  
  2763. -- Antiboomz0r's functions -----------------------------------------------------------------
  2764.  
  2765. -------------------tigrebloodd functions------------------------------
  2766.  
  2767. ca=CFrame.Angles
  2768. cn=CFrame.new
  2769. v3=Vector3.new
  2770.  
  2771. function Raycast(Pos,Dir,Ign)
  2772. return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign)
  2773. end
  2774.  
  2775. function FindGround(cf,ig)
  2776. local ax,ay,az = cf:toEulerAnglesXYZ()
  2777. local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig)
  2778. if bhit and bpos then
  2779. return bhit,cn(bpos)*ca(ax,ay,az)
  2780. end
  2781. end
  2782. -------------------tigrebloodd functions----------------------------
  2783.  
  2784. currentkey=''
  2785.  
  2786. mouse.KeyDown:connect(function(key)
  2787. if key=='q' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
  2788. executeMove('Down Slam')
  2789. elseif key=='r' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
  2790. executeMove('Aerial Sword')
  2791. end
  2792. if key=='i' then
  2793. print('movers:' .. #movers)
  2794. print('fx:' .. #fx)
  2795. print('tweens: ' .. #tweenTable)
  2796. end
  2797. if string.byte(key)==32 and canExecuteMoves==true and game.Players.LocalPlayer:FindFirstChild("Cooldown") == nil then
  2798. combostring=combostring..'.'
  2799. spawn(function()
  2800. jump()
  2801. end)
  2802. --jump()
  2803. if combostring:match('..') and dodgecool==false then
  2804. d = Instance.new("StringValue",game.Players.LocalPlayer)
  2805. d.Name = "Cooldown"
  2806. game.Debris:AddItem(d,4)
  2807. currentkey=tostring(string.byte(key))
  2808. animPlaying=true
  2809. altTween(rj,cfn()*ang(mr(-15),0,0))
  2810. altTween(rw,cfn()*ang(mr(10),0,mr(-15)))
  2811. altTween(lw,cfn()*ang(mr(10),0,mr(15)))
  2812. dodgecool=true
  2813. combostring=[[]]
  2814. local rv=tor.CFrame.upVector
  2815. local bv=int('BodyVelocity',tor)
  2816. dodgesound:Play()
  2817. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2818. bv.Velocity=rv*150
  2819. spawn(function()
  2820. for i=1,14 do
  2821. wait()
  2822. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2823. --cfx.Material='Neon'
  2824. local ran=math.random(2)
  2825. if ran==1 then
  2826. cfx.BrickColor=BrickColor.new('Bright red')
  2827. cfx.Material='Neon'
  2828. end
  2829. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2830. local b=blo(cfx)
  2831. addFx(cfx,0.05,'destroy',function()
  2832. cfx.Transparency=cfx.Transparency+0.05
  2833. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2834. end)
  2835. end
  2836. end)
  2837. wait()
  2838. bv:Destroy()
  2839. wait(0.4)
  2840. reset()
  2841. dodgecool=false
  2842. wait(0.4)
  2843. if currentkey=='32' then
  2844. currentkey=''
  2845. end
  2846. if not deb then
  2847. animPlaying=false
  2848. end
  2849. --repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  2850. --currentkey
  2851. end
  2852. end
  2853. if key=='d' and canExecuteMoves==true then
  2854. combostring=combostring..'d'
  2855. if combostring:match('dd') and dodgecool==false and game.Players.LocalPlayer:FindFirstChild("Cooldown") == nil then
  2856. d = Instance.new("StringValue",game.Players.LocalPlayer)
  2857. d.Name = "Cooldown"
  2858. game.Debris:AddItem(d,4)
  2859. --animPlaying=true
  2860. dodgecool=true
  2861. combostring=[[]]
  2862. local rv=cam.CFrame.rightVector
  2863. local bv=int('BodyVelocity',tor)
  2864. dodgesound:Play()
  2865. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2866. bv.Velocity=rv*150
  2867. --Tween(rj,cfn()*ang(mr(90),0,0))
  2868. spawn(function()
  2869. for i=1,16 do
  2870. wait()
  2871. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2872. local ran=math.random(2)
  2873. if ran==1 then
  2874. cfx.BrickColor=BrickColor.new('Bright red')
  2875. cfx.Material='Neon'
  2876. end
  2877. --cfx.Material='Neon'
  2878. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2879. local b=blo(cfx)
  2880. addFx(cfx,0.05,'destroy',function()
  2881. cfx.Transparency=cfx.Transparency+0.05
  2882. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2883. end)
  2884. end
  2885. end)
  2886. wait()
  2887. bv:Destroy()
  2888. wait(0.4)
  2889. dodgecool=false
  2890. end
  2891. elseif key=='w' and canExecuteMoves==true then
  2892. combostring=combostring..'w'
  2893. if combostring:match('ww') and dodgecool==false and game.Players.LocalPlayer:FindFirstChild("Cooldown") == nil then
  2894. d = Instance.new("StringValue",game.Players.LocalPlayer)
  2895. d.Name = "Cooldown"
  2896. game.Debris:AddItem(d,4)
  2897. dodgecool=true
  2898. combostring=""
  2899. local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,-1))
  2900. --tor.CFrame=CFrame.new(tor.Position,Vector3.new(rv.X,tor.Position.Y,rv.Z))
  2901. local bv=int('BodyVelocity',tor)
  2902. dodgesound:Play()
  2903. bv.MaxForce=Vector3.new(math.huge,0,math.huge)
  2904. bv.Velocity=rv*150
  2905. spawn(function()
  2906. for i=1,16 do
  2907. wait()
  2908. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2909. --cfx.Material='Neon'
  2910. local ran=math.random(2)
  2911. if ran==1 then
  2912. cfx.BrickColor=BrickColor.new('Bright red')
  2913. cfx.Material='Neon'
  2914. end
  2915. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2916. local b=blo(cfx)
  2917. addFx(cfx,0.05,'destroy',function()
  2918. cfx.Transparency=cfx.Transparency+0.05
  2919. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2920. end)
  2921. end
  2922. end)
  2923. wait()
  2924. bv:Destroy()
  2925. wait(0.4)
  2926. dodgecool=false
  2927. end
  2928. elseif key=='s' and canExecuteMoves==true and game.Players.LocalPlayer:FindFirstChild("Cooldown") == nil then
  2929. combostring=combostring..'s'
  2930. if combostring:match('ss') and dodgecool==false then
  2931. d = Instance.new("StringValue",game.Players.LocalPlayer)
  2932. d.Name = "Cooldown"
  2933. game.Debris:AddItem(d,4)
  2934. dodgecool=true
  2935. combostring=""
  2936. local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,1))
  2937. local bv=int('BodyVelocity',tor)
  2938. dodgesound:Play()
  2939. bv.MaxForce=Vector3.new(math.huge,0,math.huge)
  2940. bv.Velocity=rv*150
  2941. spawn(function()
  2942. for i=1,16 do
  2943. wait()
  2944. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2945. --cfx.Material='Neon'
  2946. local ran=math.random(2)
  2947. if ran==1 then
  2948. cfx.BrickColor=BrickColor.new('Bright red')
  2949. cfx.Material='Neon'
  2950. end
  2951. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2952. local b=blo(cfx)
  2953. addFx(cfx,0.05,'destroy',function()
  2954. cfx.Transparency=cfx.Transparency+0.05
  2955. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2956. end)
  2957. end
  2958. end)
  2959. wait()
  2960. bv:Destroy()
  2961. wait(.4)
  2962. dodgecool=false
  2963. end
  2964. elseif key=='a' and canExecuteMoves==true then
  2965. combostring=combostring..'a'
  2966. if combostring:match('aa') and dodgecool==false then
  2967. dodgecool=true
  2968. combostring=[[]]
  2969. local rv=cam.CFrame.rightVector
  2970. local bv=int('BodyVelocity',tor)
  2971. dodgesound:Play()
  2972. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2973. bv.Velocity=rv*-150
  2974. spawn(function()
  2975. for i=1,16 do
  2976. wait()
  2977. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  2978. --cfx.Material='Neon'
  2979. local ran=math.random(2)
  2980. if ran==1 then
  2981. cfx.BrickColor=BrickColor.new('Bright red')
  2982. cfx.Material='Neon'
  2983. end
  2984. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  2985. local b=blo(cfx)
  2986. addFx(cfx,0.05,'destroy',function()
  2987. cfx.Transparency=cfx.Transparency+0.05
  2988. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  2989. end)
  2990. end
  2991. end)
  2992. wait()
  2993. bv:Destroy()
  2994. wait(.4)
  2995. dodgecool=false
  2996. end
  2997. end
  2998. if key=='f' then
  2999. if deb==false then
  3000. executeMove('Normal Block')
  3001. end
  3002. elseif key=='z' and game.Players.LocalPlayer:FindFirstChild("RivUlt")==nil then
  3003. if deb==false then
  3004. d=Instance.new("StringValue",game.Players.LocalPlayer)
  3005. d.Name="RivUlt"
  3006. game.Debris:AddItem(d,50)
  3007. executeMove('Nightmare Overture')
  3008. end
  3009. elseif key=='e' then
  3010. if deb==false then
  3011. rcombostring=rcombostring..'e'
  3012. local cmb=rcombostring
  3013. if cmb:match('mb1mb1e') then
  3014. rcombostring=[[]]
  3015. local a=executeMove('Origin Beam')
  3016. if not a then
  3017. executeMove('Rive Beam')
  3018. end
  3019. else
  3020. executeMove('Rive Beam')
  3021. end
  3022. end
  3023. elseif key=='v' then
  3024. if deb==false then
  3025. executeMove('Diamond Storm')
  3026. end
  3027. elseif key=='t' then
  3028. if deb==false and not sprinting then
  3029. rcombostring=rcombostring..'t'
  3030. local cmb=rcombostring
  3031. if cmb:match('mb1mb1t') then
  3032. rcombostring=[[]]
  3033. local a=executeMove('Dark Lock')
  3034. if not a then
  3035. executeMove('Dark Spikes')
  3036. end
  3037. else
  3038. executeMove('Dark Spikes')
  3039. end
  3040. --end
  3041. -- executeMove('Dark Spikes')
  3042. end
  3043. elseif key=='g' then
  3044. if deb==false then
  3045. executeMove('Curse')
  3046. end
  3047. elseif key=='l' then
  3048. if deb==false then
  3049. executeMove('Ascend')
  3050. end
  3051. elseif key=='r' then
  3052. if deb==false and Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and currentkey~='32' then
  3053. -- if darknum==1 then
  3054. executeMove('Dark Slash')
  3055. --darknum=darknum+1
  3056. -- else
  3057. -- executeMove('Dark Slash2')
  3058. -- darknum=1
  3059. -- end
  3060. end
  3061. end
  3062. end)
  3063.  
  3064. mouse.KeyUp:connect(function(key)
  3065. for _,v in pairs(connectlist) do
  3066. if v.up==false and v.key==key then
  3067. v.up=true
  3068. table.remove(connectlist,_)
  3069. end
  3070. end
  3071. if string.byte(key)==48 and canExecuteMoves==true then
  3072. sprinting=false
  3073. hum.WalkSpeed=regws
  3074. end
  3075. end)
  3076.  
  3077. mouse.Button1Up:connect(function()
  3078. for _,v in pairs(connectlist) do
  3079. if v.up==false then
  3080. v.up=true
  3081. table.remove(connectlist,_)
  3082. end
  3083. end
  3084. end)
  3085.  
  3086. local oldsize=mana/maxmana
  3087. local oldchain=0
  3088. spawn(function()
  3089. while wait(1) do
  3090. if deb==false then
  3091. if chain==oldchain then
  3092. chain=0
  3093. end
  3094. oldchain=chain
  3095. end
  3096. end
  3097. end)
  3098.  
  3099. --darkustheory stuff
  3100.  
  3101. ArtificialHB = Instance.new("BindableEvent", script)
  3102. ArtificialHB.Name = "Heartbeat"
  3103.  
  3104. script:WaitForChild("Heartbeat")
  3105.  
  3106. frame = 1 / 60
  3107. tf = 0
  3108. allowframeloss = true
  3109. tossremainder = false
  3110. lastframe = tick()
  3111. script.Heartbeat:Fire()
  3112.  
  3113. game:GetService("RunService").Heartbeat:connect(function(s, p)
  3114. tf = tf + s
  3115. if tf >= frame then
  3116. if allowframeloss then
  3117. script.Heartbeat:Fire()
  3118. lastframe = tick()
  3119. else
  3120. for i = 1, math.floor(tf / frame) do
  3121. script.Heartbeat:Fire()
  3122. end
  3123. lastframe = tick()
  3124. end
  3125. if tossremainder then
  3126. tf = 0
  3127. else
  3128. tf = tf - frame * math.floor(tf / frame)
  3129. end
  3130. end
  3131. end)
  3132.  
  3133. function swait(num)
  3134. if num == 0 or num == nil then
  3135. ArtificialHB.Event:wait()
  3136. else
  3137. for i = 0, num do
  3138. ArtificialHB.Event:wait()
  3139. end
  3140. end
  3141. end
  3142.  
  3143. --darkustheory stuff
  3144.  
  3145. --game:service'RunService'.Heartbeat:connect(function()
  3146. Spawn(function()
  3147. while true do
  3148. swait()
  3149. chaintext.Text=tostring(chain) .. 'x'
  3150. manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
  3151. if mana/maxmana~=oldsize then
  3152. manabar:TweenSize(UDim2.new(mana/maxmana,0,1,0),'Out','Sine',1,true)
  3153. oldsize=mana/maxmana
  3154. end
  3155. if dumbbox then
  3156. dumbbox.CFrame=dumbhand.CFrame*cfn(0,0,4)*ang(mr(-90),0,0)
  3157. end
  3158. for _,v in pairs(textTable) do
  3159. if v.TextLabel.TextTransparency<1 then
  3160. v.TextLabel.TextTransparency=v.TextLabel.TextTransparency+0.02
  3161. v.TextLabel.TextStrokeTransparency=v.TextLabel.TextStrokeTransparency+0.02
  3162. v.StudsOffset=v.StudsOffset+Vector3.new(0,0.02,0)
  3163. else
  3164. v:Destroy()
  3165. table.remove(textTable,_)
  3166. end
  3167. end
  3168. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and jumping==false then
  3169. run=true
  3170. --if walksound.IsPlaying==false then
  3171. -- walksound:Play()
  3172. -- end
  3173. elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and jumping==false then
  3174. run=false
  3175. --walksound:Stop()
  3176. idle=true
  3177. end
  3178. --shift=48
  3179. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and canRunLeg==true then
  3180. runLeg=true
  3181. elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and canRunLeg==true then
  3182. runLeg=false
  3183. resetLegs()
  3184. end
  3185. for _,v in pairs(movers) do
  3186. if v.mover and v.mover:IsDescendantOf(tube) then
  3187. v.func()
  3188. else
  3189. table.remove(movers,_)
  3190. end
  3191. end
  3192. if bg then
  3193. if hum.Health > 0 then
  3194. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  3195. end
  3196. end
  3197. for _,v in pairs(fx) do
  3198. if v.stepval<1 then
  3199. v.func()
  3200. v.stepval=v.stepval+v.int
  3201. else
  3202. if v.final then
  3203. if v.final=='destroy' then
  3204. v.item:Destroy()
  3205. table.remove(fx,_)
  3206. -- print(#fx)
  3207. end
  3208. else
  3209. table.remove(fx,_)
  3210. end
  3211. end
  3212. end
  3213. for _,v in pairs(tweenTable) do
  3214. if v.Weld.C1==v.Stop then
  3215. table.remove(tweenTable,_)
  3216. else
  3217. if v.th<1-v.Step then
  3218. v.th=v.th+v.Step
  3219. i=v.th
  3220.  
  3221. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  3222. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  3223. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  3224. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  3225. (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
  3226. else
  3227. v.Weld.C1 = v.Stop
  3228. end
  3229. end
  3230. end
  3231. for _,v in pairs(altTweenTable) do
  3232. if v.Weld.C1==v.Stop then
  3233. table.remove(tweenTable,_)
  3234. else
  3235. if v.th<1-v.Step then
  3236. v.th=v.th+v.Step
  3237. i=v.th
  3238. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  3239. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  3240. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  3241. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  3242. (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
  3243. else
  3244. v.Weld.C1 = v.Stop
  3245. end
  3246. end
  3247. end
  3248. end
  3249. end)
  3250. --end)
  3251.  
  3252. local oldcombo
  3253. local thingz=false
  3254. local oldcombo2
  3255. local thingz2=false
  3256.  
  3257. spawn(function()
  3258. while wait(0.1) do
  3259. for _,v in pairs(cooldowns) do
  3260. if v.timeleft<0.1 then
  3261. table.remove(cooldowns,_)
  3262. else
  3263. v.timeleft=v.timeleft-0.1
  3264. end
  3265. end
  3266. if thingz==false then
  3267. oldcombo=combostring
  3268. thingz=true
  3269. else
  3270. if string.len(oldcombo)==string.len(combostring) then
  3271. combostring=[[]]
  3272. oldcombo=[[]]
  3273. end
  3274. thingz=false
  3275. end
  3276. end
  3277. end)
  3278.  
  3279. spawn(function()
  3280. while wait(0.8) do
  3281. if thingz2==false then
  3282. oldcombo2=rcombostring
  3283. thingz2=true
  3284. else
  3285. if string.len(oldcombo2)==string.len(rcombostring) then
  3286. rcombostring=[[]]
  3287. oldcombo2=[[]]
  3288. end
  3289. thingz2=false
  3290. end
  3291. end
  3292. end)
  3293.  
  3294. spawn(function()
  3295. while wait(0.3) do
  3296. if run==false then
  3297. local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  3298. cfx.Transparency=1
  3299. local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  3300. rfx.Material='Neon'
  3301. local ran=math.random(2)
  3302. if ran==1 then
  3303. rfx.BrickColor=BrickColor.new('Bright red')
  3304. end
  3305. local bm=int('SpecialMesh',rfx)--blo(rfx)
  3306. bm.MeshType='FileMesh'
  3307. bm.MeshId=rbx..'9756362'
  3308. bm.Scale=Vector3.new(0.3,0.7,0.3)
  3309. local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  3310. addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0.1,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end)
  3311. cfx.CFrame=tor.CFrame*CFrame.new(0,-2,0)*CFrame.new(math.random(-math.random(45/10),math.random(45)/10),0,math.random(-math.random(45)/10,math.random(45)/10))
  3312. rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
  3313. game.Debris:AddItem(cfx,1.1)
  3314. game.Debris:AddItem(rfx,1.1)
  3315. end
  3316. end
  3317. end)
  3318.  
  3319. while wait() do
  3320. if mana<maxmana and not deb and not animPlaying then
  3321. mana=mana+2
  3322. if mana==maxmana+1 then
  3323. mana=maxmana
  3324. end
  3325. end
  3326. if animPlaying==true and runLeg==true then
  3327. walkLegs()
  3328. end
  3329. if run==true and animPlaying==false then
  3330. altTweenTable={}
  3331. tweenTable={}
  3332. if not sprinting then
  3333. if not ascension then
  3334. walkCycle()
  3335. else
  3336. walkCycleBig()
  3337. end
  3338. else
  3339. sprintCycle()
  3340. end
  3341. elseif idle==true and animPlaying==false and not jumping then
  3342. tweenTable={}
  3343. if not ascension then
  3344. reset()
  3345. else
  3346. bigreset()
  3347. end
  3348. end
  3349. end
  3350.  
  3351. --hl/http://httpget-inumeration.c9.io/riven.lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement