Advertisement
rocket12211

Untitled

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