Advertisement
jayrock3401

Untitled

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