SHARE
TWEET

Roblox John Doe Script

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