Advertisement
Guest User

Untitled

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