Advertisement
Hermaxs

Untitled

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