Advertisement
Thefrozen106

Riven dark powers

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