Advertisement
yoyo74456

Lady

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