Advertisement
Josemmoya

blacklisted

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