Advertisement
Godofadmin1337

Riven

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