Advertisement
jayrock3401

Untitled

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