Advertisement
RobloxScripty

Untitled

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