Advertisement
Bendy928443534

Untitled

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