Advertisement
sneakydodge123

idk

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