Advertisement
00fjg

Untitled

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