Advertisement
Guest User

[Seraph] Akiro

a guest
May 7th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 134.68 KB | None | 0 0
  1.  
  2. game.Workspace.YOURNAME.Humanoid.MaxHealth=400
  3. plr = game:service'Players'.LocalPlayer
  4. char = plr.Character
  5. mouse = plr:GetMouse()
  6. humanoid = char:findFirstChild("Humanoid")
  7. torso = char:findFirstChild("Torso")
  8. head = char.Head
  9. ra = char:findFirstChild("Right Arm")
  10. la = char:findFirstChild("Left Arm")
  11. rl = char:findFirstChild("Right Leg")
  12. ll = char:findFirstChild("Left Leg")
  13. rs = torso:findFirstChild("Right Shoulder")
  14. ls = torso:findFirstChild("Left Shoulder")
  15. rh = torso:findFirstChild("Right Hip")
  16. lh = torso:findFirstChild("Left Hip")
  17. neck = torso:findFirstChild("Neck")
  18. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  19. rootpart = char:findFirstChild("HumanoidRootPart")
  20. camera = workspace.CurrentCamera
  21.  
  22. local s = Instance.new('Sound', head)
  23. s.Volume = 1
  24. s.SoundId = "rbxassetid://330630853" --EG: Music to my ears
  25. s.Looped = true
  26. s.Pitch = 1
  27. s:play()
  28.  
  29. humanoid.WalkSpeed = 40
  30.  
  31.  
  32. -------------------------------------------------------------------------------------
  33.  
  34. local Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(0,0,0))
  35.  
  36. local Num = .8
  37.  
  38. local Num2 = 6 -------------Mods:1,4,8,10,15,20-------------------------------------
  39. local Size = 0.4
  40. local Rate = 300
  41. -------------------------------------------------------------------------------------
  42. local Player = game:service'Players'.LocalPlayer
  43. local Character = Player.Character
  44. Torso = Character:WaitForChild'Torso'
  45.  
  46. local Wing1 = Instance.new("Part",Character)
  47. Wing1.FormFactor = Enum.FormFactor.Custom
  48. Wing1.Size = Vector3.new(.2, .2, .2)
  49. Wing1.Name = "WIng_1"
  50.  
  51. local fire = Instance.new("ParticleEmitter", Wing1)
  52. fire.VelocitySpread = 0
  53. fire.Lifetime = NumberRange.new(2)
  54. fire.Acceleration = Vector3.new(0, 2, 2)
  55. fire.RotSpeed = NumberRange.new(10)
  56. fire.Rate = Rate
  57. fire.Rotation = NumberRange.new(1515)
  58. fire.Name = "Fire"
  59. fire.LightEmission = 0
  60. fire.LockedToPart = true
  61. fire.Texture = "http://www.roblox.com/asset/?id=42305693"
  62. fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
  63.  
  64. local Wing2 = Instance.new("Part",Character)
  65. Wing2.FormFactor = Enum.FormFactor.Custom
  66. Wing2.Size = Vector3.new(.2, .2, .2)
  67. Wing2.Name = "WIng_2"
  68.  
  69. local fire = Instance.new("ParticleEmitter", Wing2)
  70. fire.VelocitySpread = 0
  71. fire.Lifetime = NumberRange.new(2)
  72. fire.Acceleration = Vector3.new(0, 4, 4)
  73. fire.RotSpeed = NumberRange.new(10)
  74. fire.Rate = Rate
  75. fire.Rotation = NumberRange.new(1515)
  76. fire.Name = "Fire"
  77. fire.LightEmission = 1
  78. fire.LockedToPart = true
  79. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  80. fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
  81. local x,y,z = 0,-1,-6
  82.  
  83. Wld = function(a,b,cf)
  84. local Weld = Instance.new('Weld',a)
  85. Weld.Part0 = a
  86. Weld.Part1 = b
  87. Weld.C1 = cf
  88. return Weld
  89. end
  90.  
  91. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  92. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  93.  
  94.  
  95. game:service'RunService'.Stepped:connect(function()
  96. z = 6+math.sin(tick()*2)
  97. y = -1+math.sin(tick()*Num)*Num2
  98. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  99. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  100. end)
  101. ------------------------------------------------------------------------------------------------
  102. local Player = game:service'Players'.LocalPlayer
  103. local Character = Player.Character
  104. Torso = Character:WaitForChild'Torso'
  105.  
  106. local Wing1 = Instance.new("Part",Character)
  107. Wing1.FormFactor = Enum.FormFactor.Custom
  108. Wing1.Size = Vector3.new(.2, .2, .2)
  109. Wing1.Name = "WIng_1"
  110.  
  111. local fire = Instance.new("ParticleEmitter", Wing1)
  112. fire.VelocitySpread = 0
  113. fire.Lifetime = NumberRange.new(2.5)
  114. fire.Acceleration = Vector3.new(0, 4, 4)
  115. fire.RotSpeed = NumberRange.new(10)
  116. fire.Rate = Rate
  117. fire.Rotation = NumberRange.new(1515)
  118. fire.Name = "Fire"
  119. fire.LightEmission = 0
  120. fire.LockedToPart = true
  121. fire.Texture = "http://www.roblox.com/asset/?id=42305693"
  122. fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
  123.  
  124. local Wing2 = Instance.new("Part",Character)
  125. Wing2.FormFactor = Enum.FormFactor.Custom
  126. Wing2.Size = Vector3.new(.2, .2, .2)
  127. Wing2.Name = "WIng_2"
  128.  
  129. local fire = Instance.new("ParticleEmitter", Wing2)
  130. fire.VelocitySpread = 0
  131. fire.Lifetime = NumberRange.new(2.5)
  132. fire.Acceleration = Vector3.new(0, 4, 4)
  133. fire.RotSpeed = NumberRange.new(10)
  134. fire.Rate = Rate
  135. fire.Rotation = NumberRange.new(1515)
  136. fire.Name = "Fire"
  137. fire.LightEmission = 1
  138. fire.LockedToPart = true
  139. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  140. fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
  141. local x,y,z = 0,-1,-6
  142.  
  143. Wld = function(a,b,cf)
  144. local Weld = Instance.new('Weld',a)
  145. Weld.Part0 = a
  146. Weld.Part1 = b
  147. Weld.C1 = cf
  148. return Weld
  149. end
  150.  
  151. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  152. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  153.  
  154. print'Loaded'
  155.  
  156. game:service'RunService'.Stepped:connect(function()
  157. z = 6+math.sin(tick()*2)
  158. y = -1+math.sin(tick()*Num)*Num2
  159. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  160. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  161. end)
  162.  
  163. ------------------------------------------------------------------------------------------------
  164. local Player = game:service'Players'.LocalPlayer
  165. local Character = Player.Character
  166. Torso = Character:WaitForChild'Torso'
  167.  
  168. local Wing1 = Instance.new("Part",Character)
  169. Wing1.FormFactor = Enum.FormFactor.Custom
  170. Wing1.Size = Vector3.new(.2, .2, .2)
  171. Wing1.Name = "WIng_1"
  172.  
  173. local fire = Instance.new("ParticleEmitter", Wing1)
  174. fire.VelocitySpread = 0
  175. fire.Lifetime = NumberRange.new(2.8)
  176. fire.Acceleration = Vector3.new(0, 4, 4)
  177. fire.RotSpeed = NumberRange.new(10)
  178. fire.Rate = Rate
  179. fire.Rotation = NumberRange.new(1515)
  180. fire.Name = "Fire"
  181. fire.LightEmission = 0
  182. fire.LockedToPart = true
  183. fire.Texture = "http://www.roblox.com/asset/?id=42305693"
  184. fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
  185.  
  186. local Wing2 = Instance.new("Part",Character)
  187. Wing2.FormFactor = Enum.FormFactor.Custom
  188. Wing2.Size = Vector3.new(.2, .2, .2)
  189. Wing2.Name = "WIng_2"
  190.  
  191. local fire = Instance.new("ParticleEmitter", Wing2)
  192. fire.VelocitySpread = 0
  193. fire.Lifetime = NumberRange.new(2.8)
  194. fire.Acceleration = Vector3.new(0, 4, 4)
  195. fire.RotSpeed = NumberRange.new(10)
  196. fire.Rate = Rate
  197. fire.Rotation = NumberRange.new(1515)
  198. fire.Name = "Fire"
  199. fire.LightEmission = 1
  200. fire.LockedToPart = true
  201. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  202. fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
  203. local x,y,z = 0,-1,-6
  204.  
  205. Wld = function(a,b,cf)
  206. local Weld = Instance.new('Weld',a)
  207. Weld.Part0 = a
  208. Weld.Part1 = b
  209. Weld.C1 = cf
  210. return Weld
  211. end
  212.  
  213. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  214. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  215.  
  216. print'Loaded'
  217.  
  218. game:service'RunService'.Stepped:connect(function()
  219. z = 6+math.sin(tick()*2)
  220. y = -1+math.sin(tick()*Num)*Num2
  221. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  222. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  223. end)
  224.  
  225. ------------------------------------------------------------------------------------------------
  226. local Player = game:service'Players'.LocalPlayer
  227. local Character = Player.Character
  228. Torso = Character:WaitForChild'Torso'
  229.  
  230. local Wing1 = Instance.new("Part",Character)
  231. Wing1.FormFactor = Enum.FormFactor.Custom
  232. Wing1.Size = Vector3.new(.2, .2, .2)
  233. Wing1.Name = "WIng_1"
  234.  
  235. local fire = Instance.new("ParticleEmitter", Wing1)
  236. fire.VelocitySpread = 0
  237. fire.Lifetime = NumberRange.new(3)
  238. fire.Acceleration = Vector3.new(0, 4, 4)
  239. fire.RotSpeed = NumberRange.new(10)
  240. fire.Rate = Rate
  241. fire.Rotation = NumberRange.new(1515)
  242. fire.Name = "Fire"
  243. fire.LightEmission = 0
  244. fire.LockedToPart = true
  245. fire.Texture = "http://www.roblox.com/asset/?id=42305693"
  246. fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
  247.  
  248. local Wing2 = Instance.new("Part",Character)
  249. Wing2.FormFactor = Enum.FormFactor.Custom
  250. Wing2.Size = Vector3.new(.2, .2, .2)
  251. Wing2.Name = "WIng_2"
  252.  
  253. local fire = Instance.new("ParticleEmitter", Wing2)
  254. fire.VelocitySpread = 0
  255. fire.Lifetime = NumberRange.new(3)
  256. fire.Acceleration = Vector3.new(0, 4, 4)
  257. fire.RotSpeed = NumberRange.new(10)
  258. fire.Rate = Rate
  259. fire.Rotation = NumberRange.new(1515)
  260. fire.Name = "Fire"
  261. fire.LightEmission = 1
  262. fire.LockedToPart = true
  263. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  264. fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
  265. local x,y,z = 0,-1,-6
  266.  
  267. Wld = function(a,b,cf)
  268. local Weld = Instance.new('Weld',a)
  269. Weld.Part0 = a
  270. Weld.Part1 = b
  271. Weld.C1 = cf
  272. return Weld
  273. end
  274.  
  275. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  276. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  277.  
  278. print'Loaded'
  279.  
  280. game:service'RunService'.Stepped:connect(function()
  281. z = 6+math.sin(tick()*2)
  282. y = -1+math.sin(tick()*Num)*Num2
  283. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  284. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  285. end)
  286.  
  287. ------------------------------------------------------------------------------------------------
  288. local Player = game:service'Players'.LocalPlayer
  289. local Character = Player.Character
  290. Torso = Character:WaitForChild'Torso'
  291.  
  292. local Wing1 = Instance.new("Part",Character)
  293. Wing1.FormFactor = Enum.FormFactor.Custom
  294. Wing1.Size = Vector3.new(.2, .2, .2)
  295. Wing1.Name = "WIng_1"
  296.  
  297. local fire = Instance.new("ParticleEmitter", Wing1)
  298. fire.VelocitySpread = 0
  299. fire.Lifetime = NumberRange.new(3.1)
  300. fire.Acceleration = Vector3.new(0, 4, 4)
  301. fire.RotSpeed = NumberRange.new(10)
  302. fire.Rate = Rate
  303. fire.Rotation = NumberRange.new(1515)
  304. fire.Name = "Fire"
  305. fire.LightEmission = 0
  306. fire.LockedToPart = true
  307. fire.Texture = "http://www.roblox.com/asset/?id=42305693"
  308. fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
  309.  
  310. local Wing2 = Instance.new("Part",Character)
  311. Wing2.FormFactor = Enum.FormFactor.Custom
  312. Wing2.Size = Vector3.new(.2, .2, .2)
  313. Wing2.Name = "WIng_2"
  314.  
  315. local fire = Instance.new("ParticleEmitter", Wing2)
  316. fire.VelocitySpread = 0
  317. fire.Lifetime = NumberRange.new(3.1)
  318. fire.Acceleration = Vector3.new(0, 4, 4)
  319. fire.RotSpeed = NumberRange.new(10)
  320. fire.Rate = Rate
  321. fire.Rotation = NumberRange.new(1515)
  322. fire.Name = "Fire"
  323. fire.LightEmission = 1
  324. fire.LockedToPart = true
  325. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  326. fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
  327. local x,y,z = 0,-1,-6
  328.  
  329. Wld = function(a,b,cf)
  330. local Weld = Instance.new('Weld',a)
  331. Weld.Part0 = a
  332. Weld.Part1 = b
  333. Weld.C1 = cf
  334. return Weld
  335. end
  336.  
  337. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  338. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  339.  
  340. print'Loaded'
  341.  
  342. game:service'RunService'.Stepped:connect(function()
  343. z = 6+math.sin(tick()*2)
  344. y = -1+math.sin(tick()*Num)*Num2
  345. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  346. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  347. end)
  348.  
  349. Player = game:GetService("Players").LocalPlayer
  350. Character = Player.Character
  351. PlayerGui = Player.PlayerGui
  352. Backpack = Player.Backpack
  353. Torso = Character.Torso
  354. Head = Character.Head
  355. Humanoid = Character.Humanoid
  356. LeftArm = Character["Left Arm"]
  357. LeftLeg = Character["Left Leg"]
  358. RightArm = Character["Right Arm"]
  359. RightLeg = Character["Right Leg"]
  360. local HBill = Instance.new("BillboardGui", Head)
  361. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  362. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  363. HBill.Size = UDim2.new(15,0,2.2,0)
  364. HBill.Name = "Health Display"
  365. HBill.StudsOffset = Vector3.new(0,4,0)
  366. HBill.AlwaysOnTop = true
  367. HBill.Enabled=true
  368. HMain.BackgroundColor3 = Color3.new(255, 255, 255)
  369. HMain.BackgroundTransparency = 0.6
  370. HMain.Size = UDim2.new(1,0,1,0)
  371. HBarBack.Parent = HMain
  372. HBarBack.BackgroundColor3 = Color3.new(255,255,255)
  373. HBarBack.BorderColor3 = Color3.new(255,255,255)
  374. HBarBack.BorderSizePixel = 2
  375. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  376. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  377. HBar.Parent = HBarBack
  378. HBar.BackgroundColor3 = Color3.new(255, 255, 255)
  379. HBar.BorderColor3 = Color3.new(0,0,0)
  380. HBar.Size = UDim2.new(.5,0,1,0)
  381. HHealth.BackgroundTransparency = 1
  382. HHealth.Size = UDim2.new(1,0,1,0)
  383. HHealth.Font = "SourceSans"
  384. HHealth.Text = "[10/10]"
  385. HHealth.TextScaled = true
  386. HHealth.TextColor3 = Color3.new(255,255,255)
  387. HHealth.TextStrokeColor3 = Color3.new(0, 0, 0)
  388. HHealth.TextStrokeTransparency = 0
  389. HName.Parent = HMain
  390. HName.BackgroundTransparency = 1
  391. HName.Size = UDim2.new(1,0,.5,0)
  392. HName.Font = "SourceSansItalic"
  393. HName.Text = "Akiro"
  394. HName.TextScaled = true
  395. HName.TextColor3 = BrickColor.new("Black metallic").Color
  396. HName.TextStrokeColor3 = Color3.new(0,0,0)
  397. HName.TextStrokeTransparency = 0
  398. HName.TextYAlignment = "Top"
  399. local runServ = game:GetService("RunService").RenderStepped
  400. runServ:connect(function()
  401. HHealth.Text = "["..Humanoid.Health.."]"
  402. HBar:TweenSize(UDim2.new((Humanoid.Health/Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
  403. end)
  404.  
  405. --Tinfold
  406. --If you log this, don't leak it
  407. --Apparently an older version of this script was already leaked. If you get this one, please don't leak it. Leak it when it's done, for god's sake.
  408. --Akiro
  409. math.randomseed(tick())
  410. plr=game:service'Players'.LocalPlayer
  411. ch,char=plr.Character,plr.Character
  412. hum=ch.Humanoid
  413. tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
  414. m,mouse=plr:GetMouse(),plr:GetMouse()
  415. cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
  416. bc=BrickColor.new
  417. head=ch.Head
  418. cam=workspace.CurrentCamera
  419. debris=game.Debris
  420.  
  421. rj.C0=cfn()
  422. rj.C1=cfn()
  423.  
  424. lib={}
  425. lib.cone='1033714'
  426. lib.ring="3270017"
  427. lib.yato='579392805'
  428. lib.diamond='9756362'
  429. lib.crown='20329976'
  430. lib.darkmagiccircle='223123319'
  431. rbx='rbxassetid://'
  432.  
  433. for _,v in pairs(lib) do
  434. game:GetService'ContentProvider':Preload('rbxassetid'..v)
  435. end
  436.  
  437. --tb and anti sc
  438. v3 = Vector3.new
  439. cn = CFrame.new
  440. ca2 = CFrame.Angles
  441. mf = math.floor
  442. mran = math.random rn=mran
  443. mrad = math.rad rd=mrad
  444. mdeg = math.deg dg=mdeg
  445. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  446. mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
  447. ud=UDim2.new
  448. bn = BrickColor.new
  449. c3 = Color3.new
  450. --tb and anti sc
  451.  
  452. getSound=function(id)
  453. game:service'ContentProvider':Preload('rbxassetid'..tostring(id))
  454. local s=int("Sound",ch.Head)
  455. s.SoundId='rbxassetid://' .. tostring(id-1)
  456. s.Volume=1
  457. return s
  458. end
  459.  
  460. --declarations
  461.  
  462. --strings
  463. local combostring=[[]]
  464. local attackstring=[[]]
  465.  
  466. --sounds, some by qaeo
  467. blocksound=getSound(260433722)
  468. blocksound.Pitch=1
  469. startsound=getSound(588738950) --260433747
  470. startsound.Pitch=1
  471. endsound=getSound(588736246) --260433769
  472. endsound.Pitch=1
  473. endsound.Volume=2
  474. swsound=getSound(588736970)
  475. --swsound.Pitch=0.8
  476. swexp=getSound(365002939)
  477. swexp.Pitch=1
  478. spexp=getSound(365002939)
  479. spexp.Pitch=1.2
  480. startsound2=getSound(260433769)--260433769
  481. startsound2.Pitch=0.8
  482. startsound3=getSound(260433769)
  483. startsound3.Pitch=0.89
  484. chargesound=getSound(181004944)
  485. chargesound.Pitch=1
  486. basicsound=getSound(588736246)--260433747
  487. basicsound.Pitch=1.2
  488. dodgesound=getSound(177162407)
  489. dodgesound.Pitch=1.4
  490. landsound=getSound(315775190)
  491. rushsound=getSound(134012323)--134012323
  492. swoosh=getSound(231917988)
  493. --swoosh.Pitch=1.2
  494. swoosh.Volume=2
  495. aerialcharge=getSound(265109959)
  496. aerialcharge.Pitch=1.1
  497. curse=getSound(231917971)
  498. glass=getSound(130779172)
  499. magictone1=getSound(588738950)
  500. chargedupbeam=getSound(588735946)
  501. chargedupbeam.Volume=2.5
  502. diamondproj=getSound(231917751)
  503. diamondproj.PlaybackSpeed=5
  504. diamondbreak=getSound(130779172)
  505. diamondbreak.Pitch=2
  506. magicriff=getSound(588735156)
  507. bigmagic=getSound(231917773)
  508. walksound=getSound(142665236)
  509. apoc=getSound(235097615)
  510. rise=getSound(231917834)
  511. rise.Pitch=1.4
  512. ultdi=getSound(231917823)
  513. giantexplosion=getSound(233091206)
  514. local explodcharg=getSound(588697035)
  515. explodcharg.Volume=10
  516.  
  517. local magcd=rbx..lib.darkmagiccircle
  518.  
  519. --tables
  520. tweenTable={}
  521. altTweenTable={}
  522. local alljoints={}
  523. textTable={}
  524. local fx={}
  525. moves={}
  526. connectlist={}
  527. cooldowns={}
  528. movers={}
  529. local linetable={}
  530. moveDescriptions={
  531. ['Dark Missile']={move='Dark Missile',key='Left Mouse Button',desc=[[A basic, dark blast that is cheap on mana and easy to use. Deals low damage.]]},
  532. ['Normal Block']={move='Normal Block',desc=[[Blocks projectile attacks where you aim.]]},
  533. ['Rive Beam']={move='Rive Beam',desc=[[A beam of energy that deals heavy damage and knocks down foes.]]},
  534. ['Dark Spikes']={move='Dark Spikes',desc=[[A series of dark stakes that explode to push enemies back and deal medium damage.]]},
  535. ['Down Slam']={move='Down Slam',key=[[Space, Space, Q]],desc=[[An aerial attack that slams the character against the ground to create a shockwave that knocks down and deals low damage to enemies.]]},
  536. ['Aerial Sword']={move='Aerial Sword',key=[[Space, Space, Hold R]],desc=[[An aerial attack with huge power; creates a sphere of dark energy that flings spectral swords which explode and deal damage.]]},
  537. ['Curse']={move='Curse',desc=[[An attack that inflicts the Cursed debuff (5% maxhealth damage every second) and lifesteals half of damage dealt.]]},
  538. ['Dark Slash']={move='Dark Slash',desc=[[Summons a spectral sword that slashes to deal huge critical damage. Very high crit chance.]]},
  539. ['Diamond Storm']={move='Diamond Storm',desc=[[Charge up dark energy to release a flurry of diamonds that explode to deal damage with high crit chance. Heals twice damage dealt. High mana cost.]]},
  540. ['Origin Beam']={move='Origin Beam',key='LMB, LMB, E',desc=[[Combo move: charges a beam that is held for a short time and deals rapid damage.]]},
  541. ['Nightmare Overture']={move='Nightmare Overture',key='Z',desc=[[Ultimate move: Four pillars rise, charges a diamond levitates the user. Creates four diamonds than can be shot, dealing massive damage. Final diamond explodes, dealing massive damage and the Curse debuff to anyone inside the blast radius. ]]}
  542. }
  543.  
  544. --bool global
  545. local run=false
  546. idle=false
  547. local animPlaying=false
  548. local runLeg=false
  549. canRunLeg=false
  550. local deb=false
  551. local basicswitch=false
  552. local canExecuteMoves=true
  553. local bg=false
  554. local sprinting=false
  555. ascension=false
  556. local aright=false
  557. local aleft=false
  558. local aforward=false
  559. local aback=false
  560. local mult=2
  561.  
  562. --string
  563. rcombostring=[[]]
  564.  
  565. --num
  566. maxmana=50233
  567. mana=43034
  568. chain=0
  569. regws=30
  570. bigws=14
  571. hum.MaxHealth=300
  572. spawn(function()
  573. wait() hum.Health=300
  574. end)
  575.  
  576. -- gui
  577. local managui=int('ScreenGui',plr.PlayerGui)
  578. managui.Name='Mana Gui'
  579. local frame=int('Frame',managui)
  580. frame.Size=UDim2.new(0.15,0,0.02,0)
  581. frame.Position=UDim2.new(1-0.17,0,0.7,0)
  582. frame.BackgroundColor3=BrickColor.new('Black').Color
  583. frame.BorderColor3=BrickColor.new('Really black').Color
  584. frame.BorderSizePixel=6
  585.  
  586. local manabartext=int('TextLabel',frame)
  587. manabartext.ZIndex=2
  588. manabartext.Size=UDim2.new(1,0,1,0)
  589. manabartext.TextColor3=BrickColor.new('White').Color
  590. manabartext.TextStrokeTransparency=1
  591. manabartext.Font='SourceSansLight'
  592. manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
  593. manabartext.FontSize='Size18'
  594. manabartext.BackgroundTransparency=1
  595.  
  596. local manabar=int('Frame',frame)
  597. manabar.Size=UDim2.new(1,0,1,0)
  598. manabar.BorderSizePixel=0
  599. manabar.BackgroundColor3=BrickColor.new('White').Color
  600. manabar.Size=UDim2.new(mana/maxmana,0,1,0)
  601.  
  602. local chainframe=int('Frame',managui)
  603. chainframe.Size=frame.Size
  604. chainframe.BackgroundTransparency=1
  605. chainframe.Position=frame.Position+UDim2.new(0.07,0,-0.05,0)
  606. local chaintext=int('TextLabel',chainframe)
  607. chaintext.BackgroundTransparency=1
  608. chaintext.TextStrokeColor3=BrickColor.new('White').Color
  609. chaintext.TextStrokeTransparency=0
  610. chaintext.Size=UDim2.new(1,0,1,0)
  611. chaintext.Font='Antique'
  612. chaintext.FontSize='Size48'
  613. chaintext.Text='0x'
  614.  
  615. local r=int('TextLabel',chainframe)
  616. r.BackgroundTransparency=1
  617. r.TextColor3=BrickColor.new('White').Color
  618. --r.TextStrokeTransparency=0
  619. r.Size=UDim2.new(1,0,1,0)
  620. r.Font='Antique'
  621. r.FontSize='Size24'
  622. r.Text=string.reverse('neviR')
  623. r.Position=UDim2.new(-0.9,0,0.5,0)
  624.  
  625. local cooldownframe=int('Frame',managui)
  626. cooldownframe.Size=UDim2.new(0.3,0,0.2,0)
  627. cooldownframe.BorderSizePixel=0
  628. cooldownframe.Transparency=1
  629. cooldownframe.Position=UDim2.new(0.7,0,0.8,0)
  630.  
  631. local movebutton=int('TextButton',managui)
  632. movebutton.Position=UDim2.new(0.93,0,0.73,0)
  633. movebutton.Text='Moves'
  634. movebutton.Font='Antique'
  635. movebutton.BackgroundColor3=BrickColor.new('Really black').Color
  636. movebutton.BorderSizePixel=0
  637. movebutton.TextColor3=BrickColor.new('White').Color
  638. movebutton.FontSize='Size24'
  639. movebutton.Size=UDim2.new(0.05,0,0.025,0)
  640.  
  641. movesframe=int('Frame',managui)
  642. movesframe.Size=UDim2.new(0.3,0,0.5,0)
  643. movesframe.BackgroundColor3=BrickColor.new('Really black').Color
  644. movesframe.BorderSizePixel=6
  645. movesframe.Position=UDim2.new(0.35,0,0.25,0)
  646. movesframe.BorderColor3=BrickColor.new('White').Color
  647. movesframe.Visible=false
  648.  
  649. local scrollframe=int('ScrollingFrame',movesframe)
  650. scrollframe.Size=UDim2.new(0.35,0,1,0)
  651. scrollframe.BackgroundColor3=BrickColor.new('Really black').Color
  652. scrollframe.ZIndex=2
  653. scrollframe.BorderColor3=BrickColor.new('White').Color
  654. scrollframe.BorderSizePixel=2
  655.  
  656. local descbox=int('Frame',movesframe)
  657. descbox.Size=UDim2.new(1-0.35,0,1,0)
  658. descbox.Position=UDim2.new(0.35,0,0,0)
  659. descbox.ZIndex=3
  660. descbox.BackgroundTransparency=1
  661. descbox.BorderSizePixel=0
  662.  
  663. local nam=int('TextLabel',descbox)
  664. nam.Size=UDim2.new(1,0,0.05,0)
  665. nam.Position=UDim2.new(0,0,0.1,0)
  666. nam.ZIndex=4
  667. nam.Font='Antique'
  668. nam.FontSize='Size24'
  669. nam.BackgroundTransparency=1
  670. nam.TextColor3=BrickColor.new('White').Color
  671. nam.Text='Select a move!'
  672.  
  673. local desc=int('TextLabel',descbox)
  674. desc.BackgroundTransparency=1
  675. desc.TextWrapped=true
  676. desc.Font='Antique'
  677. desc.FontSize='Size32'
  678. desc.Text=''
  679. desc.TextColor3=BrickColor.new('White').Color
  680. desc.TextXAlignment='Center'
  681. desc.TextYAlignment='Top'
  682. desc.Size=UDim2.new(1,0,0.6,0)
  683. desc.Position=UDim2.new(0,0,0.2,0)
  684. desc.ZIndex=4
  685.  
  686. local manacostg=int('TextLabel',desc)
  687. manacostg.Size=UDim2.new(1,0,0.1,0)
  688. manacostg.Text=''
  689. manacostg.Font='Antique'
  690. manacostg.FontSize='Size28'
  691. manacostg.TextColor3=BrickColor.new('White').Color
  692. manacostg.Position=UDim2.new(0,0,0.85,0)
  693. manacostg.BackgroundTransparency=1
  694.  
  695. local cmb=int('TextLabel',desc)
  696. cmb.Size=UDim2.new(1,0,0.1,0)
  697. cmb.Text=''
  698. cmb.Font='Antique'
  699. cmb.FontSize='Size28'
  700. cmb.TextColor3=BrickColor.new('White').Color
  701. cmb.Position=UDim2.new(0,0,0.7,0)
  702. cmb.BackgroundTransparency=1
  703.  
  704. local buttony=0.002
  705.  
  706. for _,v in pairs(moveDescriptions) do
  707. local button=int('TextButton',scrollframe)
  708. button.Size=UDim2.new(0.85,0,0.05,0)
  709. button.BorderSizePixel=0
  710. button.BackgroundColor3=BrickColor.new('White').Color
  711. button.Font='Antique'
  712. button.FontSize='Size24'
  713. button.TextColor3=BrickColor.new('White').Color
  714. button.TextWrapped=true
  715. button.Text=v.move
  716. button.ZIndex=3
  717. button.Position=UDim2.new(0.03,0,buttony,0)
  718. buttony=buttony+0.052
  719. button.MouseButton1Down:connect(function()
  720. desc.Text=v.desc
  721. nam.Text=v.move
  722. if v.key then
  723. cmb.Text='Keys: ' .. v.key
  724. else
  725. cmb.Text='Keys: ' .. string.upper(moves[v.move].key)
  726. end
  727. manacostg.Text='Mana Cost: ' .. tostring(moves[v.move].manacost)
  728. end)
  729. end
  730.  
  731. movebutton.MouseButton1Down:connect(function()
  732. if movesframe.Visible==false then
  733. movesframe.Visible=true
  734. else
  735. movesframe.Visible=false
  736. end
  737. end)
  738.  
  739. local cx=0
  740. local cy=0
  741.  
  742. addCoolDownGui=function(v)
  743. local thing=int('TextLabel',cooldownframe)
  744. thing.TextWrapped=true
  745. thing.Size=UDim2.new(0.19,0,0.5,0)
  746. thing.Position=UDim2.new(cx,0,cy,0)
  747. thing.BackgroundColor3=BrickColor.new('Really black').Color
  748. thing.Font='Antique'
  749. thing.FontSize='Size24'
  750. thing.TextColor3=BrickColor.new('White').Color
  751. thing.BorderSizePixel=0
  752. thing.Text=v.move .. ' ' .. tostring(v.timeleft)
  753. spawn(function()
  754. repeat wait(0.1) thing.Text=v.move .. ' ' .. tostring(v.timeleft) until v.timeleft<0.1
  755. thing:Destroy()
  756. -- if cy<1 and cx>0 then
  757. -- cx=cx-0.2
  758. -- end
  759. -- if cy>1 and cx>0 then
  760. -- cx=cx-0.2
  761. --end
  762. updateCoolDowns()
  763. end)
  764. if cx<1-0.2 then
  765. cx=cx+0.2
  766. else
  767. cy=0.5
  768. cx=0
  769. end
  770. end
  771.  
  772. updateCoolDowns=function()
  773. cooldownframe:clearAllChildren()
  774. cx=0
  775. cy=0
  776. for _,v in pairs(cooldowns) do
  777. addCoolDownGui(v)
  778. end
  779. end
  780.  
  781. ypcall(function()
  782. ch.Animate:Destroy()
  783. ch.Humanoid.Animator:Destroy()
  784. end)
  785.  
  786. if ch:findFirstChild("Riven") then
  787. ch['Riven']:Destroy()
  788. end
  789.  
  790. local tube=int("Model",ch)
  791. tube.Name='Riven'
  792. script.Parent=tube
  793.  
  794. --functions
  795.  
  796. 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.
  797. p0.Position = p1.Position
  798. local w = Instance.new('Motor',par or p0)
  799. w.Part0 = p1
  800. w.Part1 = p0
  801. w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
  802. w.MaxVelocity = .1
  803. return w
  804. end
  805.  
  806. function clerp(c1,c2,sp)
  807. local R1,R2,R3 = c1:toEulerAnglesXYZ()
  808. local R21,R22,R23 = c2:toEulerAnglesXYZ()
  809. return CFrame.new(
  810. c1.X + (c2.X-c1.X)*sp,
  811. c1.Y + (c2.Y-c1.Y)*sp,
  812. c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles(
  813. R1 + (R21-R1)*sp,
  814. R2 + (R22-R2)*sp,
  815. R3 + (R23-R3)*sp
  816. )
  817. end
  818.  
  819. Tween = function(Weld, Stop, Step,a)
  820. ypcall(function()
  821. local func = function()
  822. local Start = Weld.C1
  823. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  824. local Stop = Stop
  825. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  826. if not Step then Step=0.1 end
  827. 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})
  828. end
  829. if a then coroutine.wrap(func)() else func() end
  830. end)
  831. end
  832.  
  833. altTween = function(Weld, Stop, Step,a)
  834. ypcall(function()
  835. local func = function()
  836. local Start = Weld.C1
  837. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  838. local Stop = Stop
  839. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  840. if not Step then Step=0.1 end
  841. 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})
  842. end
  843. if a then coroutine.wrap(func)() else func() end
  844. end)
  845. end
  846.  
  847. weld=function(p0,p1,c0)
  848. local w=Instance.new("Weld",p0)
  849. w.Part0=p0
  850. w.Part1=p1
  851. w.C0=c0
  852. return w
  853. end
  854.  
  855. cp=function(parent,color,size,anchored,cancollide)
  856. local newp=Instance.new("Part",parent)
  857. newp.TopSurface='SmoothNoOutlines'
  858. newp.BottomSurface='SmoothNoOutlines'
  859. newp.FrontSurface='SmoothNoOutlines'
  860. newp.BackSurface='SmoothNoOutlines'
  861. newp.RightSurface='SmoothNoOutlines'
  862. newp.LeftSurface='SmoothNoOutlines'
  863. newp.FormFactor="Custom"
  864. newp.BrickColor=bc(color)
  865. local rn=math.random(3)
  866. if rn==1 then
  867. -- newp.BrickColor=BrickColor.new('White')
  868. end
  869. newp.Size=size
  870. newp.Anchored=anchored
  871. newp.CanCollide=cancollide
  872. newp:BreakJoints()
  873. return newp
  874. end
  875.  
  876.  
  877. if ch:findFirstChild('Body Colors') then
  878. ch['Body Colors'].HeadColor=BrickColor.new('Really black')
  879. ch['Body Colors'].TorsoColor=BrickColor.new('Really black')
  880. ch['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  881. ch['Body Colors'].RightLegColor=BrickColor.new('White')
  882. ch['Body Colors'].RightArmColor=BrickColor.new('Really black')
  883. ch['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  884. end
  885.  
  886. for _,v in pairs(ch:GetChildren()) do
  887. if v.className=='Accessory' then
  888. v:Destroy()
  889. elseif v.className=='Part' then
  890. v.BrickColor=BrickColor.new('Really black')
  891. end
  892. if v.Name=='Right Leg' then
  893. v.BrickColor=BrickColor.new('White')
  894. end
  895. end
  896.  
  897. if ch:findFirstChild('Pants') then
  898. ch.Pants:Destroy()
  899. end
  900.  
  901. if ch:findFirstChild('Shirt') then
  902. ch.Shirt:Destroy()
  903. end
  904.  
  905. destroyJoints=function()
  906. for i=1,5 do
  907. for _,v in pairs(alljoints) do
  908. ypcall(function()
  909. v:Destroy()
  910. table.remove(alljoints,_)
  911. end)
  912. end
  913. end
  914. end
  915.  
  916. initializeJoints=function()
  917. destroyJoints()
  918. rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
  919. rabr.Position = torso.Position
  920. rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
  921. w = Instance.new("Weld",tube)
  922. w.Part0,w.Part1 = ch['Right Arm'],rabr
  923. w.C1 = CFrame.new(0,-.5,0)
  924. labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
  925. labr.Position = torso.Position
  926. lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
  927. ww = Instance.new("Weld",tube)
  928. ww.Part0,ww.Part1 = ch['Left Arm'],labr
  929. ww.C1 = CFrame.new(0,-.5,0)
  930. rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
  931. rlabr.Position = torso.Position
  932. rlw = Weld(rlabr,torso,0.5,-1.5,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
  933. wl = Instance.new("Weld",tube)
  934. wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
  935. wl.C1 = CFrame.new(0,-.5,0)
  936. llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
  937. llabr.Position = torso.Position
  938. llw = Weld(llabr,torso,-0.5,-1.5,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
  939. wwl = Instance.new("Weld",tube)
  940. wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
  941. wwl.C1 = CFrame.new(0,-.5,0)
  942. nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
  943. nk.Position = torso.Position
  944. neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
  945. www = Instance.new("Weld",tube)
  946. www.Part0,www.Part1 = ch['Head'],nk
  947. www.C1 = CFrame.new(0,-.5,0)
  948. table.insert(alljoints,rabr)
  949. table.insert(alljoints,labr)
  950. table.insert(alljoints,rw)
  951. table.insert(alljoints,lw)
  952. table.insert(alljoints,w)
  953. table.insert(alljoints,ww)
  954. table.insert(alljoints,rlabr)
  955. table.insert(alljoints,llabr)
  956. table.insert(alljoints,rlw)
  957. table.insert(alljoints,llw)
  958. table.insert(alljoints,wl)
  959. table.insert(alljoints,wwl)
  960. table.insert(alljoints,nk)
  961. table.insert(alljoints,neck)
  962. table.insert(alljoints,www)
  963. end
  964.  
  965. cyl=function(prt)
  966. local c=int("CylinderMesh",prt)
  967. c.Name='mesh'
  968. return c
  969. end
  970.  
  971. blo=function(prt)
  972. local c=int("BlockMesh",prt)
  973. c.Name='bmsh'
  974. return c
  975. end
  976.  
  977. sphere=function(prt)
  978. local c=int('SpecialMesh',prt)
  979. c.MeshType='Sphere'
  980. return c
  981. end
  982.  
  983. newSpm=function(prt)
  984. local nspm=int('SpecialMesh',prt)
  985. nspm.MeshType='FileMesh'
  986. return nspm
  987. end
  988.  
  989.  
  990. --cool hat
  991. local hat=cp(tube,'Really black',Vector3.new(1,1,1))
  992. local hatmesh=int('SpecialMesh',hat)
  993. hatmesh.MeshId=rbx..'24102243'
  994. weld(ch.Head,hat,cfn(0,0.6,0))
  995.  
  996.  
  997. local rarmdiamond=cp(tube,'White',Vector3.new(1,1,1))
  998. local dia=newSpm(rarmdiamond)
  999. dia.MeshId=rbx..lib.diamond
  1000. dia.Scale=Vector3.new(0.4,0.8,0.4)
  1001. weld(ch['Right Arm'],rarmdiamond,cfn(0.4,0,0))
  1002.  
  1003. local testshoulder=cp(tube,'White',Vector3.new(1.1,0.6,1.1))
  1004. testshoulder.Material='SmoothPlastic'
  1005. weld(ch['Right Arm'],testshoulder,cfn(0,0.8,0))
  1006.  
  1007. --local testtorso=cp(tube,'White',Vector3.new(2.8,0.4,1.1))
  1008. --blo(testtorso).Scale=Vector3.new(0.95,1,0.95)
  1009. --weld(tor,testtorso,cfn(0,0,0)*ang(0,0,mr(45)))
  1010.  
  1011. local testhalf=cp(tube,'White',Vector3.new(1,2,1))
  1012. testhalf.Material='SmoothPlastic'
  1013. blo(testhalf).Scale=Vector3.new(1.01,1.01,1.01)
  1014. weld(tor,testhalf,cfn(0.5,0,0))
  1015.  
  1016. blo(ch['Right Leg'])
  1017. ch['Right Leg'].Material='SmoothPlastic'
  1018. ch['Right Leg'].TopSurface='SmoothNoOutlines'
  1019. ch['Right Leg'].BottomSurface='SmoothNoOutlines'
  1020. ch['Right Leg'].LeftSurface='SmoothNoOutlines'
  1021. ch['Right Leg'].RightSurface='SmoothNoOutlines'
  1022. ch['Right Leg'].FrontSurface='SmoothNoOutlines'
  1023. ch['Right Leg'].BackSurface='SmoothNoOutlines'
  1024.  
  1025. local cooldiamond=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1026. local dia=newSpm(cooldiamond)
  1027. dia.Scale=Vector3.new(0.4,0.8,0.45)
  1028. dia.MeshId=rbx..lib.diamond
  1029. weld(testhalf,cooldiamond,cfn(0,0.3,-0.3))
  1030.  
  1031. local cooldiamond2=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1032. local dia=newSpm(cooldiamond2)
  1033. dia.Scale=Vector3.new(0.4,0.8,0.45)
  1034. dia.MeshId=rbx..lib.diamond
  1035. weld(testhalf,cooldiamond2,cfn(0.2,-0.15,-0.3))
  1036.  
  1037. local cooldiamond3=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1038. local dia=newSpm(cooldiamond3)
  1039. dia.Scale=Vector3.new(0.4,0.8,0.45)
  1040. dia.MeshId=rbx..lib.diamond
  1041. weld(testhalf,cooldiamond3,cfn(-0.2,-0.15,-0.3))
  1042.  
  1043. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1044. p1.Material='SmoothPlastic'
  1045. local bm=blo(p1)
  1046. bm.Scale=Vector3.new(0.05,0.15,0.5)
  1047. weld(testshoulder,p1,cfn(0.55,0.1,0.225))
  1048.  
  1049. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1050. p1.Material='SmoothPlastic'
  1051. local bm=blo(p1)
  1052. bm.Scale=Vector3.new(0.05,0.5,0.15)
  1053. weld(testshoulder,p1,cfn(0.55,0,0.225))
  1054.  
  1055. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1056. p1.Material='SmoothPlastic'
  1057. local bm=blo(p1)
  1058. bm.Scale=Vector3.new(0.05,0.525,0.15)
  1059. weld(testshoulder,p1,cfn(0.55,0.005,0))
  1060.  
  1061. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1062. p1.Material='SmoothPlastic'
  1063. local bm=blo(p1)
  1064. bm.Scale=Vector3.new(0.05,0.525,0.15)
  1065. weld(testshoulder,p1,cfn(0.55,0.005,-0.15))
  1066.  
  1067. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1068. p1.Material='SmoothPlastic'
  1069. local bm=blo(p1)
  1070. bm.Scale=Vector3.new(0.05,0.525,0.15)
  1071. weld(testshoulder,p1,cfn(0.55,0.005,-0.23)*ang(mr(35),0,0))
  1072.  
  1073. local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
  1074. p1.Material='SmoothPlastic'
  1075. local bm=blo(p1)
  1076. bm.Scale=Vector3.new(0.05,0.525,0.15)
  1077. weld(testshoulder,p1,cfn(0.55,0.005,-0.3))
  1078.  
  1079. --blo(ch['Right Leg'])
  1080. --ch['Right Leg'].Material='SmoothPlastic'
  1081.  
  1082. --[[
  1083. local testp=cp(tube,'White',Vector3.new(2.1,1.3,1.2))
  1084. local tpb=blo(tstp)
  1085. tpb.Scale=Vector3.new(1.01,1.01,1)
  1086. weld(tor,testp,cfn(0,0.4,0))
  1087. ]]
  1088.  
  1089.  
  1090.  
  1091. initializeJoints()
  1092.  
  1093. reset=function()
  1094. if run == false and animPlaying == false then
  1095. altTweenTable={}
  1096. Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(5)))
  1097. Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(-5)))
  1098. Tween(rw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
  1099. Tween(lw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
  1100. Tween(neck,cfn())
  1101. Tween(rj,cfn(0,0.08*math.sin(tick()*1.5),0),0.3)
  1102. end
  1103. end
  1104.  
  1105. bigreset=function()
  1106. if run == false and animPlaying == false then
  1107. altTweenTable={}
  1108. Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(5)))
  1109. Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-5)))
  1110. 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))))
  1111. 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))))
  1112. Tween(neck,cfn())
  1113. Tween(rj,cfn(0,0.08*math.sin(tick()*1.5*mult),0),0.3)
  1114. end
  1115. end
  1116.  
  1117.  
  1118. resetLegs=function()
  1119. altTweenTable={}
  1120. Tween(llw,cfn())
  1121. Tween(rlw,cfn())
  1122. end
  1123.  
  1124. walkCycle=function()
  1125. if run==true and animPlaying==false then
  1126. tweenTable={}
  1127. Tween(neck,cfn())
  1128. Tween(rj,cfn())
  1129. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
  1130. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
  1131. Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
  1132. Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
  1133. end
  1134. end
  1135.  
  1136. walkCycleBig=function()
  1137. if run==true and animPlaying==false then
  1138. tweenTable={}
  1139. Tween(neck,cfn())
  1140. Tween(rj,cfn())
  1141. 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)
  1142. 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)
  1143. Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
  1144. Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
  1145. end
  1146. end
  1147.  
  1148. sprintCycle=function()
  1149. if run==true and animPlaying==false then
  1150. tweenTable={}
  1151. Tween(rj,cfn()*ang(mr(10),0,0))
  1152. Tween(llw,cfn(0,0,-0.2*math.sin(tick()*11))*ang(mr(20)+mr(60*math.sin(tick()*11)),0,0),0.25)
  1153. Tween(rlw,cfn(0,0,0.2*math.sin(tick()*11))*ang(mr(20)+mr(-60*math.sin(tick()*11)),0,0),0.25)
  1154. Tween(rw,cfn()*ang(mr(-20)+mr(60*math.sin(tick()*11)),0,mr(-10)),0.25)
  1155. Tween(lw,cfn()*ang(mr(-20)+mr(-60*math.sin(tick()*11)),0,mr(10)),0.25)
  1156. end
  1157. end
  1158.  
  1159. local jumping=false
  1160.  
  1161. jump=function()
  1162. if animPlaying==false then
  1163. jumping=true
  1164. run=false
  1165. resetLegs()
  1166. tweenTable={}
  1167. altTweenTable={}
  1168. -- animPlaying=true
  1169. -- Tween(rj,cfn()*ang(mr(-15),0,0),0.2)
  1170. Tween(neck,cfn(0,0,-0.2)*ang(mr(-20),0,0),0.1)
  1171. Tween(rw,cfn()*ang(mr(15),0,mr(-25)),0.1)
  1172. Tween(lw,cfn()*ang(mr(15),0,mr(25)),0.1)
  1173. Tween(rlw,cfn()*ang(mr(15),0,0),0.1)
  1174. Tween(llw,cfn()*ang(mr(15),0,0),0.1)
  1175. wait(0.2)
  1176. reset()
  1177. wait(0.1)
  1178. -- animPlaying=false
  1179. jumping=false
  1180. end
  1181. end
  1182.  
  1183. walkLegs=function()
  1184. if runLeg==true then
  1185. altTweenTable={}
  1186. altTween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(20)+mr(50*math.sin(tick()*8)),0,0),0.6)
  1187. altTween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(20)+mr(-50*math.sin(tick()*8)),0,0),0.6)
  1188. end
  1189. end
  1190.  
  1191. dealDamage=function(man,damage,crit,multi,lifesteal)
  1192. if man and man:findFirstChild'Humanoid' and man:findFirstChild'Head' then
  1193. local dm=damage
  1194. local cr=false
  1195. local hm=man.Humanoid
  1196. if crit then
  1197. if crit>0 then
  1198. local c=math.random(crit)
  1199. if c==1 then
  1200. cr=true
  1201. end
  1202. end
  1203. end
  1204. if cr==true then
  1205. if not multi then
  1206. dm=dm*1.5
  1207. else
  1208. dm=dm*multi
  1209. end
  1210. end
  1211. hm:TakeDamage(dm)
  1212. if lifesteal then
  1213. --print'lifesteal'
  1214. local plife=lifesteal*dm
  1215. if hum.Health<hum.MaxHealth then
  1216. hum.Health=hum.Health+plife
  1217. local bbg=int('BillboardGui',tube)
  1218. bbg.Size=UDim2.new(1,0,1,0)
  1219. bbg.StudsOffset=Vector3.new(0,2,0)
  1220. 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))
  1221. bbg.Adornee=ch.Head
  1222. bbg.AlwaysOnTop=true
  1223. local tlabl=int('TextLabel',bbg)
  1224. tlabl.Size=UDim2.new(1,0,1,0)
  1225. tlabl.Text=tostring(plife)
  1226. tlabl.BackgroundTransparency=1
  1227. tlabl.TextColor3=BrickColor.new('Bright green').Color
  1228. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  1229. tlabl.TextStrokeTransparency=0
  1230. tlabl.Font='Antique'
  1231. tlabl.FontSize='Size60'
  1232. table.insert(textTable,bbg)
  1233. end
  1234. end
  1235. chain=chain+1
  1236. if hm.MaxHealth>=99999 then
  1237. hm.Parent:BreakJoints()
  1238. end
  1239. local bbg=int('BillboardGui',tube)
  1240. bbg.Size=UDim2.new(1,0,1,0)
  1241. bbg.StudsOffset=Vector3.new(0,2,0)
  1242. 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))
  1243. bbg.Adornee=man.Head
  1244. bbg.AlwaysOnTop=true
  1245. local tlabl=int('TextLabel',bbg)
  1246. tlabl.Size=UDim2.new(1,0,1,0)
  1247. tlabl.Text=tostring(dm)
  1248. tlabl.BackgroundTransparency=1
  1249. tlabl.TextColor3=BrickColor.new('Really black').Color
  1250. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  1251. if cr==true then
  1252. tlabl.TextColor3=BrickColor.new('White').Color
  1253. tlabl.TextStrokeColor3=BrickColor.new('Really black').Color
  1254. end
  1255. tlabl.TextStrokeTransparency=0
  1256. tlabl.Font='Antique'
  1257. tlabl.FontSize='Size60'
  1258. table.insert(textTable,bbg)
  1259. return dm
  1260. end
  1261. end
  1262.  
  1263. displayText=function(thing,text,color)
  1264. local bbg=int('BillboardGui',tube)
  1265. bbg.Size=UDim2.new(1,0,1,0)
  1266. bbg.StudsOffset=Vector3.new(0,3,0)
  1267. bbg.Adornee=thing
  1268. bbg.AlwaysOnTop=true
  1269. local tlabl=int('TextLabel',bbg)
  1270. tlabl.Size=UDim2.new(1,0,1,0)
  1271. tlabl.Text=text
  1272. tlabl.BackgroundTransparency=1
  1273. tlabl.TextColor3=BrickColor.new('Really black').Color
  1274. tlabl.TextStrokeColor3=BrickColor.new('White').Color
  1275. tlabl.TextStrokeTransparency=0
  1276. tlabl.Font='Antique'
  1277. tlabl.FontSize='Size60'
  1278. table.insert(textTable,bbg)
  1279. end
  1280.  
  1281. local tp=cp(tube,'White',Vector3.new(1,1,1))
  1282. tp.Transparency=1
  1283. weld(ch['Right Arm'],tp,cfn(0,-1,0))
  1284.  
  1285. addFx=function(item,int,final,func)
  1286. table.insert(fx,{item=item,int=int,func=func,final=final,stepval=0})
  1287. end
  1288.  
  1289. addMove=function(name,key,cooldown,func,manacost)
  1290. moves[name]={key=key,cooldown=cooldown,func=func,manacost=manacost}
  1291. end
  1292.  
  1293. drawLine=function(point_a,point_b,bc_code,angle,mag,width)
  1294. local dist=(point_a-point_b).magnitude;
  1295. local num=1
  1296. if mag then
  1297. num=mag
  1298. end
  1299. if dist>num then
  1300. local rad=dist/2;
  1301. local line=Instance.new('Part',tube)
  1302. line.Anchored=true;
  1303. line.FormFactor='Custom';
  1304. line.BrickColor=BrickColor.new(bc_code);
  1305. line.TopSurface='SmoothNoOutlines'
  1306. line.BottomSurface='SmoothNoOutlines'
  1307. line.LeftSurface='SmoothNoOutlines'
  1308. line.RightSurface='SmoothNoOutlines'
  1309. line.FrontSurface='SmoothNoOutlines'
  1310. line.BackSurface='SmoothNoOutlines'
  1311. line.Material='Neon'
  1312. line.CanCollide=false;
  1313. line.Size=Vector3.new(0.7,dist,0.7);
  1314. if width then
  1315. line.Size=Vector3.new(width,dist,width);
  1316. end
  1317. cyl(line).Name='blok'
  1318. -- Instance.new("BlockMesh",line).Name='blok'
  1319. line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad)*ang(mr(90),0,0)--*angle;
  1320. return line;
  1321. end
  1322. end;
  1323.  
  1324. depleteMana=function(amount)
  1325. if mana>0 then
  1326. if mana-amount>0 then
  1327. mana=mana-amount
  1328. return true
  1329. else
  1330. return false
  1331. end
  1332. end
  1333. end
  1334.  
  1335. executeMove=function(name)
  1336. if canExecuteMoves==true then
  1337. if ch and hum and hum.Health>0 then
  1338. local can=true
  1339. for _,v in pairs(cooldowns) do
  1340. if v.move==name then
  1341. can=false
  1342. break
  1343. --return false
  1344. end
  1345. end
  1346. if name=='Nightmare Overture' then
  1347. if Vector3.new(0,tor.Velocity.Y,0).magnitude>2 or Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 then
  1348. can=false
  1349. end
  1350. end
  1351. if can==true then
  1352. local can2=true
  1353. if moves[name].manacost then
  1354. local a=mana-moves[name].manacost
  1355. local b=false
  1356. if a>0 then
  1357. b=true
  1358. end
  1359. if not b then
  1360. can2=false
  1361. end
  1362. end
  1363. if can2 then
  1364. local c
  1365. depleteMana(moves[name].manacost)
  1366. moves[name].func()
  1367. end
  1368. return true
  1369. else
  1370. return false
  1371. end
  1372. end
  1373. end
  1374. end
  1375.  
  1376. addToCList=function(what,key)
  1377. local a={what,key=key,up=false}
  1378. table.insert(connectlist,a)
  1379. return a
  1380. end
  1381.  
  1382. waitForUp=function(what)
  1383. repeat wait() until what.up==true
  1384. end
  1385.  
  1386. addMover=function(what,step,func)
  1387. table.insert(movers,{mover=what,step=step,lastpoint=what.CFrame,func=func})
  1388. end
  1389.  
  1390. local function CreateRegion3FromLocAndSize(Position, Size)
  1391. local SizeOffset = Size/2
  1392. local Point1 = Position - SizeOffset
  1393. local Point2 = Position + SizeOffset
  1394. return Region3.new(Point1, Point2)
  1395. end
  1396.  
  1397. local righthandle=cp(tube,"White",Vector3.new(1,1,1))
  1398. weld(ch['Right Arm'],righthandle,cfn(0,-1,0))
  1399. righthandle.Transparency=1
  1400.  
  1401. local lefthandle=cp(tube,"White",Vector3.new(1,1,1))
  1402. weld(ch['Left Arm'],lefthandle,cfn(0,-1,0))
  1403. lefthandle.Transparency=1
  1404.  
  1405. addCoolDown=function(move)
  1406. local a={timeleft=moves[move].cooldown,move=move}
  1407. addCoolDownGui(a)
  1408. table.insert(cooldowns,a)
  1409. end
  1410.  
  1411. addMove('Normal Block','f',0.5,function()
  1412. deb=true
  1413. idle=false
  1414. local ws=hum.WalkSpeed
  1415. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1416. hum.WalkSpeed=0
  1417. tweenTable={}
  1418. animPlaying=true
  1419. local pcf=tor.CFrame
  1420. Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
  1421. Tween(rw,cfn()*ang(mr(-86),mr(-15),0),0.2)
  1422. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1423. blocksound:Play()
  1424. local block=cp(workspace,'Really black',Vector3.new(8,6,1),true,true)
  1425. block.CFrame=pcf*CFrame.new(0,0,-5)
  1426. block.Material='Neon'
  1427. local bm=blo(block)
  1428. bm.Scale=Vector3.new(0,0,0.9)
  1429. addFx(block,0.05,nil,function() bm.Scale=bm.Scale+Vector3.new(0.05,0.05,0) end)
  1430. local a=addToCList('block_connect','f')
  1431. waitForUp(a)
  1432. addCoolDown('Normal Block')
  1433. hum.WalkSpeed=ws
  1434. deb=false
  1435. 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)
  1436. idle=true
  1437. reset()
  1438. animPlaying=false
  1439. end,15)
  1440.  
  1441. addMove('Dark Lock','mb1mb1t',1,function()
  1442. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1443. local lv=tor.CFrame
  1444. tweenTable={}
  1445. animPlaying=true
  1446. deb=true
  1447. canRunLeg=true
  1448. magictone1:Play()
  1449. Tween(rj,cfn()*ang(0,mr(25),0),0.2)
  1450. Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
  1451. wait(0.2)
  1452. Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
  1453. Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
  1454. Tween(neck,cfn()*ang(0,mr(55),0))
  1455. local spot=4
  1456. addCoolDown('Dark Lock')
  1457. for i=1,10 do
  1458. wait(0.1)
  1459. local v=lv.lookVector*spot
  1460. --print(v)
  1461. spot=spot+14
  1462. local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
  1463. spike.CFrame=lv*CFrame.new(0,0,-spot)
  1464. local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
  1465. local dml=cyl(dam)
  1466. local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
  1467. local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
  1468. if bhit then
  1469. spike.CFrame=pos*CFrame.new(0,0,0)
  1470. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  1471. mgp.Transparency=1
  1472. mgp.CFrame=spike.CFrame
  1473. game.Debris:AddItem(mgp,2)
  1474. local sn=spexp:clone()
  1475. sn.Parent=mgp
  1476. sn.Volume=2
  1477. sn:Play()
  1478. dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
  1479. local blast=dam
  1480. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1481. local people={}
  1482. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1483. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1484. local can=false
  1485. if not v.Parent:findFirstChild('HitDeb') then
  1486. can=true
  1487. end
  1488. if can==true then
  1489. local db=Instance.new('StringValue',v.Parent)
  1490. db.Name='HitDeb'
  1491. game.Debris:AddItem(db,0.2)
  1492. local humin=v.Parent.Humanoid
  1493. if humin then
  1494. local php=humin.Health
  1495. dealDamage(humin.Parent,10+math.random(3),2)
  1496. local testvel=int('BodyVelocity',v)
  1497. testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1498. testvel.Velocity=Vector3.new()
  1499. game.Debris:addItem(testvel,1)
  1500. local fxb=cp(tube,'Really black',Vector3.new(10,10,10),true)
  1501. fxb.CFrame=spike.CFrame*CFrame.new(0,5,0)
  1502. fxb.Transparency=0.5
  1503. fxb.Material='Neon'
  1504. local blm=blo(fxb)
  1505. blm.Scale=Vector3.new(0,0,0)
  1506. addFx(fxb,0.1,nil,function() blm.Scale=blm.Scale+Vector3.new(0.1,0.1,0.1) end)
  1507. Delay(3.4,function()
  1508. dealDamage(v.Parent,10,5,2)
  1509. addFx(fxb,0.07,'destroy',function() blm.Scale=blm.Scale+Vector3.new(0.07,0.07,0.07) fxb.Transparency=fxb.Transparency-0.035 end)
  1510. end)
  1511. humin.Sit=true
  1512. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1513. print('equal')
  1514. humin:TakeDamage(20)
  1515. end
  1516. end
  1517. end
  1518. end
  1519. end
  1520. local cl=cyl(spike)
  1521. addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
  1522. 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)
  1523. else
  1524. spike:Destroy()
  1525. end
  1526. end
  1527. wait(0.7)
  1528. deb=false
  1529. canRunLeg=false
  1530. animPlaying=false
  1531. reset()
  1532. end,50)
  1533.  
  1534. addMove('Diamond Storm','v',10,function()
  1535. animPlaying=true
  1536. deb=true
  1537. canExecuteMoves=false
  1538. hum.WalkSpeed=0
  1539. tweenTable={}
  1540. altTweenTable={}
  1541. Tween(rw,cfn(0,1,0)*ang(mr(-70),mr(-45),0))
  1542. Tween(lw,cfn()*ang(mr(-70),mr(45),0))
  1543. magicriff:Play()
  1544. game.Debris:AddItem(bgmc,1)
  1545. spawn(function()
  1546. for i=1,20 do
  1547. wait()
  1548. local fx=cp(tube,'Really black',Vector3.new(1.2,1.2,1.2),true)
  1549. fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1550. local bl=blo(fx)
  1551. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  1552. end
  1553. end)
  1554. wait(1)
  1555. bg=true
  1556. local a=addToCList('diamond_connect','v')
  1557. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1558. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1559. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1560. repeat wait(0.1)
  1561. local d=depleteMana(10)
  1562. if d then
  1563. local bgmc=bigmagic:clone()
  1564. bgmc.Parent=ch.Head
  1565. bgmc.Volume=1
  1566. bgmc:Play()
  1567. local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
  1568. crn.CFrame=tor.CFrame*cfn(0,-2.5,0)
  1569. local ms=newSpm(crn)
  1570. ms.TextureId=rbx..'132155326'
  1571. ms.MeshId=rbx..lib.crown
  1572. ms.VertexColor=Vector3.new(0,0,0)
  1573. ms.Scale=Vector3.new(1.5,1,1.5)
  1574. addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.3,0,0.3) end)
  1575. diamondproj:Play()
  1576. local dia=cp(tube,'Really black',Vector3.new(1,1,1))
  1577. local ran=math.random(2)
  1578. if ran==1 then
  1579. dia.BrickColor=BrickColor.new('White')
  1580. end
  1581. local dmm=newSpm(dia)
  1582. dmm.Scale=Vector3.new(0.5,1,0.5)
  1583. dmm.MeshId=rbx..lib.diamond
  1584. dia.CFrame=righthandle.CFrame
  1585. local sw=dia
  1586. local vel=int('BodyVelocity',dia)
  1587. 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(3.4),math.random(3.4))),mr(math.random(-math.random(3.4),math.random(3.4))),mr(math.random(-math.random(3.4),math.random(3.4))))--*ang(mr(90),0,0)
  1588. vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1589. vel.Velocity=sw.CFrame.lookVector*152
  1590. sw.CFrame=sw.CFrame*ang(mr(90),0,0)
  1591. game.Debris:AddItem(sw,2)
  1592. local dmgdealt=false
  1593. local nct=sw.Touched:connect(function(part)
  1594. if part.Parent and part.Parent:findFirstChild('Humanoid') and not part:IsDescendantOf(ch) and not dmgdealt then
  1595. dealDamage(part.Parent,6.5,5,2,2)
  1596. dmgdealt=true
  1597. end
  1598. if part:IsDescendantOf(ch)==false then
  1599. local snd=diamondbreak:clone()
  1600. snd.Parent=sw
  1601. snd:Play()
  1602. vel:Destroy()
  1603. sw.Anchored=true
  1604. 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)
  1605. end
  1606. end)
  1607. else
  1608. a.up=true
  1609. end
  1610. until a.up==true
  1611. animPlaying=false
  1612. deb=false
  1613. bg=false
  1614. canExecuteMoves=true
  1615. hum.WalkSpeed=regws
  1616. reset()
  1617. end,100)
  1618.  
  1619. addMove('Curse','g',25,function()
  1620. deb=true
  1621. idle=false
  1622. animPlaying=true
  1623. canRunLeg=true
  1624. tweenTable={}
  1625. altTweenTable={}
  1626. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1627. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1628. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1629. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  1630. wait(0.15)
  1631. curse:Play()
  1632. addCoolDown('Curse')
  1633. local bullet=cp(tube,'Really black',Vector3.new(1,1,1))
  1634. bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  1635. bullet.Transparency=1
  1636. local bulletfx=bullet:clone()
  1637. bulletfx.Transparency=1
  1638. bulletfx.Parent=bullet
  1639. bulletfx.Anchored=true
  1640. sphere(bulletfx)
  1641. local angle=0
  1642. local lastpoint=bullet.CFrame
  1643. spawn(function()
  1644. repeat wait(0.06)
  1645. local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  1646. cfx.Transparency=1
  1647. local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  1648. rfx.Material='Neon'
  1649. local ran=math.random(2)
  1650. if ran==1 then
  1651. rfx.BrickColor=BrickColor.new('White')
  1652. end
  1653. local bm=int('SpecialMesh',rfx)--blo(rfx)
  1654. bm.MeshType='FileMesh'
  1655. bm.MeshId=rbx..'9756362'
  1656. bm.Scale=Vector3.new(0.3,0.7,0.3)
  1657. local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1658. 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)
  1659. 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))
  1660. rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
  1661. game.Debris:AddItem(cfx,1.1)
  1662. game.Debris:AddItem(rfx,1.1)
  1663. until bullet.Parent==nil
  1664. end)
  1665. addMover(bullet,0.8,function()
  1666. angle=angle+1
  1667. local angles=CFrame.Angles(0,0,mr(angle))
  1668. bulletfx.CFrame=bullet.CFrame--*angles
  1669. --bullet.CFrame=bullet.CFrame*angles
  1670. local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
  1671. fxp.CFrame=bulletfx.CFrame--*ang(mr(-90),0,0)
  1672. local bmesh=int('SpecialMesh',fxp)
  1673. bmesh.MeshType='FileMesh'
  1674. bmesh.MeshId=rbx..lib.ring
  1675. bmesh.Scale=Vector3.new(2,2,2)
  1676. 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)
  1677. end)
  1678. bullet.Touched:connect(function(p)
  1679. if not p:isDescendantOf(ch) then
  1680. local thing
  1681. local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
  1682. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  1683. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  1684. thing=v
  1685. break
  1686. end
  1687. end
  1688. if thing and thing.Parent then
  1689. if thing.Parent:findFirstChild('Head') then
  1690. displayText(thing.Parent.Head,'Cursed','Really black')
  1691. else
  1692. displayText(thing,'Cursed','Really black')
  1693. end
  1694. end
  1695. local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
  1696. mgp.Transparency=1
  1697. mgp.CFrame=bullet.CFrame
  1698. game.Debris:AddItem(mgp,3)
  1699. local tsound=glass:clone()
  1700. tsound.Volume=2
  1701. tsound.Parent=mgp
  1702. tsound:Play()
  1703. --local explosound=getSound(142070128)
  1704. --explosound.Volume=0.8
  1705. --explosound.Pitch=1.2
  1706. -- explosound.Parent=p
  1707. --explosound:Play()
  1708. local position=bullet.CFrame
  1709. if thing and thing.Parent then
  1710. dealDamage(thing.Parent,5,5)
  1711. local humin=thing.Parent.Humanoid
  1712. spawn(function()
  1713. for i=1,10 do
  1714. wait(1)
  1715. if thing.Parent then
  1716. dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)
  1717. end
  1718. end
  1719. end)
  1720. end
  1721. local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1722. blast.Material='Neon'
  1723. local spm2=blo(blast)
  1724. spm2.Name='mesh'
  1725. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1726. if p.Name=='Torso' or p.Parent and p.Parent:findFirstChild'Torso' then
  1727. blast.CFrame=p.Parent.Torso.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1728. end
  1729. for i=1,5 do
  1730. local fx=blast:clone()
  1731. fx.Parent=tube
  1732. fx.CFrame=blast.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  1733. addFx(fx,0.05,"destroy",function()
  1734. fx.mesh.Scale=fx.mesh.Scale+Vector3.new(0.1,0.1,0.1)
  1735. fx.Transparency=fx.Transparency+0.05
  1736. end)
  1737. end
  1738. addFx(blast,0.05,"destroy",function()
  1739. spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
  1740. blast.Transparency=blast.Transparency+0.05
  1741. end)
  1742. bullet:Destroy()
  1743. bulletfx:Destroy()
  1744. end
  1745. end)
  1746. game.Debris:AddItem(bullet,3)
  1747. local bv=int('BodyVelocity',bullet)
  1748. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1749. bv.Velocity=bullet.CFrame.lookVector*150
  1750. wait(0.5)
  1751. reset()
  1752. deb=false
  1753. canRunLeg=false
  1754. animPlaying=false
  1755. end,100)
  1756.  
  1757. addMove('Rive Beam','e',5,function()
  1758. tweenTable={}
  1759. altTweenTable={}
  1760. animPlaying=true
  1761. idle=false
  1762. deb=true
  1763. local pcf=tor.CFrame
  1764. canRunLeg=true
  1765. startsound:Play()
  1766. chargesound.Looped=true
  1767. chargesound:Play()
  1768. Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
  1769. Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
  1770. Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
  1771. bg=true
  1772. local a=addToCList('beam_connect','e')
  1773. local charge=cp(tube,"Really black",Vector3.new(1,1,1))
  1774. charge.Material='Neon'
  1775. local spm=int('SpecialMesh',charge)
  1776. spm.MeshType='Sphere'
  1777. spm.Name='sphere'
  1778. weld(ch['Right Arm'],charge,cfn(0,-2,0))
  1779. local up=false
  1780. local multiplier=1
  1781. local cn=chargesound.DidLoop:connect(function()
  1782. local fx=charge:clone()
  1783. fx.Parent=tube
  1784. fx.CFrame=charge.CFrame
  1785. fx.BrickColor=BrickColor.new('White')
  1786. weld(charge,fx,cfn())
  1787. 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)
  1788. end)
  1789. spawn(function()
  1790. 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
  1791. end)
  1792. waitForUp(a)
  1793. cn:Disconnect()
  1794. up=true
  1795. addCoolDown('Rive Beam')
  1796. chargesound:Stop()
  1797. if multiplier<3.1 then
  1798. endsound:Play()
  1799. else
  1800. chargedupbeam:Play()
  1801. end
  1802. local ringFx=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  1803. ringFx.CFrame=charge.CFrame*ang(mr(-90),0,0)
  1804. ringFx.Material='Neon'
  1805. local spm=int('SpecialMesh',ringFx)
  1806. spm.MeshId=rbx..lib.ring
  1807. spm.Scale=Vector3.new(2,2,2)
  1808. addFx(ringFx,0.08,"destroy",function()
  1809. spm.Scale=spm.Scale+Vector3.new(0.2,0.2,0)
  1810. ringFx.Transparency=ringFx.Transparency+0.08
  1811. end)
  1812. print(multiplier)
  1813. local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
  1814. if multiplier>=3.1 then
  1815. beam.BrickColor=BrickColor.new('White')
  1816. end
  1817. local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300)
  1818. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  1819. local distance = (charge.CFrame.p - position).magnitude
  1820. beam.Size = Vector3.new(1, 1, distance)
  1821. beam.Material='Neon'
  1822. beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1823. local blast=cp(tube,"Really black",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false)
  1824. blast.Material='Neon'
  1825. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
  1826. if multiplier>=3.1 then
  1827. local blast2=blast:clone()
  1828. --blast2.Size=blast.Size-Vector3.new(1,1,1)
  1829. blast2.CFrame=blast.CFrame
  1830. blast2.Parent=blast
  1831. blast2.BrickColor=BrickColor.new('White')
  1832. local spml=sphere(blast2)
  1833. spml.Scale=Vector3.new(0.8,0.8,0.8)
  1834. 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 )
  1835. end
  1836. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  1837. local people={}
  1838. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1839. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1840. local can=false
  1841. if not v.Parent:findFirstChild('HitDeb') then
  1842. can=true
  1843. end
  1844. if can==true then
  1845. local db=Instance.new('StringValue',v.Parent)
  1846. db.Name='HitDeb'
  1847. game.Debris:AddItem(db,0.5)
  1848. local humin=v.Parent.Humanoid
  1849. if humin then
  1850. local php=humin.Health
  1851. dealDamage(humin.Parent,20*multiplier,10,1,0.05)
  1852. humin.Sit=true
  1853. humin.PlatformStand=true
  1854. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1855. print('equal')
  1856. humin:TakeDamage(20*multiplier)
  1857. end
  1858. end
  1859. end
  1860. end
  1861. end
  1862. local blastsound=getSound(262562443)
  1863. blastsound.Parent=blast
  1864. blastsound.Volume=5
  1865. blastsound:Play()
  1866. blastsound:Stop()
  1867. blastsound:Play()
  1868. canRunLeg=false
  1869. runLeg=false
  1870. animPlaying=false
  1871. tweenTable={}
  1872. local spm2=int('SpecialMesh',blast)
  1873. spm2.MeshType='Sphere'
  1874. addFx(blast,0.008,"destroy",function()
  1875. spm2.Scale=spm2.Scale+Vector3.new(0.05,0.05,0.05)
  1876. blast.Transparency=blast.Transparency+0.008
  1877. end)
  1878. addFx(beam,0.1,"destroy",function()
  1879. beam.Transparency=beam.Transparency+0.1
  1880. end)
  1881. addFx(charge,0.1,"destroy",function()
  1882. charge.Transparency=charge.Transparency+0.1
  1883. end)
  1884. bg=false
  1885. run=false
  1886. idle=true
  1887. reset()
  1888. deb=false
  1889. end,60)
  1890.  
  1891. addMove('Down Slam','q',4,function()
  1892. currentkey=key
  1893. deb=true
  1894. animPlaying=true
  1895. altTweenTable={}
  1896. tweenTable={}
  1897. local rv=tor.CFrame.upVector
  1898. local bv=int('BodyVelocity',tor)
  1899. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1900. bv.Velocity=rv*-150
  1901. rushsound:Play()
  1902. Tween(rj,cfn()*ang(mr(180),0,0))
  1903. Tween(rw,cfn()*ang(mr(-180),0,0))
  1904. Tween(lw,cfn()*ang(mr(-180),0,0))
  1905. addCoolDown('Down Slam',4)
  1906. spawn(function()
  1907. repeat
  1908. wait()
  1909. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  1910. local ran=math.random(2)
  1911. if ran==1 then
  1912. cfx.BrickColor=BrickColor.new('White')
  1913. cfx.Material='Neon'
  1914. end
  1915. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  1916. local b=blo(cfx)
  1917. addFx(cfx,0.05,'destroy',function()
  1918. cfx.Transparency=cfx.Transparency+0.05
  1919. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  1920. end)
  1921. until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  1922. end)
  1923. wait()
  1924. bv:Destroy()
  1925. multiplier=1
  1926. repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  1927. local bhit,pos=FindGround(cn(tor.CFrame.p),ch)
  1928. local blast=cp(tube,"Really black",Vector3.new(10,10,10),true,false)
  1929. blast.CFrame=pos
  1930. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
  1931. local people={}
  1932. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  1933. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  1934. local can=false
  1935. if not v.Parent:findFirstChild('HitDeb') then
  1936. can=true
  1937. end
  1938. if can==true then
  1939. local db=Instance.new('StringValue',v.Parent)
  1940. db.Name='HitDeb'
  1941. game.Debris:AddItem(db,0.5)
  1942. local humin=v.Parent.Humanoid
  1943. if humin then
  1944. local php=humin.Health
  1945. dealDamage(humin.Parent,20*multiplier,10)
  1946. humin.Sit=true
  1947. humin.PlatformStand=true
  1948. if humin.Health>=php and humin.MaxHealth~=math.huge then
  1949. print('equal')
  1950. humin:TakeDamage(20*multiplier)
  1951. end
  1952. end
  1953. end
  1954. end
  1955. end
  1956. local sp=sphere(blast)
  1957. blast.Material='Neon'
  1958. landsound:Play()
  1959. addFx(blast,0.02,'destroy',
  1960. function()
  1961. sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1)
  1962. blast.Transparency=blast.Transparency+0.02
  1963. end)
  1964. animPlaying=false
  1965. deb=false
  1966. end,40)
  1967.  
  1968. addMove('Aerial Sword','r',2,function()
  1969. deb=true
  1970. animPlaying=true
  1971. tweenTable={}
  1972. altTweenTable={}
  1973. canExecuteMoves=false
  1974. idle=false
  1975. run=false
  1976. aerialcharge:Play()
  1977. Tween(rw,cfn()*ang(mr(-90),0,0))
  1978. local bp
  1979. local bgg
  1980. local a=addToCList('Aerial Sword','r')
  1981. local still=true
  1982. bp=int('BodyPosition',tor)
  1983. bp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1984. bp.Position=tor.Position
  1985. local sphr=cp(tube,'Really black',Vector3.new(8,8,8),true)
  1986. sphr.Transparency=1
  1987. sphr.Material='Neon'
  1988. local spho=sphere(sphr)
  1989. spho.Name='spho'
  1990. spho.Scale=Vector3.new(0,0,0)
  1991. sphr.CFrame=tor.CFrame
  1992. 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)
  1993. Delay(6,function()
  1994. if not a.up then
  1995. a.up=true
  1996. end
  1997. end)
  1998. repeat wait(0.3)
  1999. local b=depleteMana(35)
  2000. if b then
  2001. swsound:Play()
  2002. local fx=sphr:clone()
  2003. fx.Parent=tube
  2004. fx.CFrame=sphr.CFrame
  2005. fx.BrickColor=BrickColor.new('White')
  2006. 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)
  2007. local sw=int('Part')
  2008. game.Debris:AddItem(sw,6)
  2009. sw.CanCollide=false
  2010. sw.Anchored=false
  2011. sw.BrickColor=BrickColor.new('Really black')
  2012. sw.Material='Neon'
  2013. sw.Size=Vector3.new(1,1,2)
  2014. 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)
  2015. sw.Parent=tube
  2016. sw.Transparency=1
  2017. addFx(sw,0.1,nil,function() sw.Transparency=sw.Transparency-.1 end)
  2018. local spm=int("SpecialMesh",sw)
  2019. spm.MeshType='FileMesh'
  2020. spm.MeshId=rbx..lib.yato
  2021. spm.Scale=Vector3.new(0.05,0.05,0.05)
  2022. local vel=int('BodyVelocity',sw)
  2023. vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2024. vel.Velocity=sw.CFrame.lookVector*152
  2025. sw.CFrame=sw.CFrame*ang(0,mr(180),0)
  2026. sw.Touched:connect(function(p)
  2027. if p:IsDescendantOf(ch)==false then
  2028. sw.Anchored=true
  2029. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  2030. mgp.CFrame=sw.CFrame
  2031. mgp.Transparency=1
  2032. game.Debris:AddItem(mgp,2)
  2033. ssp=swexp:clone()
  2034. ssp.Parent=mgp
  2035. ssp.Volume=2
  2036. ssp:Play()
  2037. local blast=cp(tube,'White',Vector3.new(8,8,8),true)
  2038. blast.Material='Neon'
  2039. blast.CFrame=sw.CFrame
  2040. local sp=sphere(blast)
  2041. 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)
  2042. 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)
  2043. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  2044. local people={}
  2045. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2046. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2047. local can=false
  2048. if not v.Parent:findFirstChild('HitDeb') then
  2049. can=true
  2050. end
  2051. if can==true then
  2052. local db=Instance.new('StringValue',v.Parent)
  2053. db.Name='HitDeb'
  2054. game.Debris:AddItem(db,0.2)
  2055. local humin=v.Parent.Humanoid
  2056. if humin then
  2057. local php=humin.Health
  2058. dealDamage(humin.Parent,20+math.random(5),5)
  2059. humin.Sit=true
  2060. --humin.PlatformStand=true
  2061. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2062. print('equal')
  2063. humin:TakeDamage(20)
  2064. end
  2065. end
  2066. end
  2067. end
  2068. end
  2069. end
  2070. end)
  2071. else
  2072. a.up=true
  2073. end
  2074. until a.up==true
  2075. addCoolDown('Aerial Sword')
  2076. 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)
  2077. still=false
  2078. spawn(function()
  2079. wait(0.3)
  2080. canExecuteMoves=true
  2081. end)
  2082. bp:Destroy()
  2083. tor.Anchored=false
  2084. deb=false
  2085. animPlaying=false
  2086. reset()
  2087. end,200)
  2088.  
  2089. addMove('Dark Missile','mb1',0.1,function()
  2090. tweenTable={}
  2091. animPlaying=true
  2092. deb=true
  2093. canRunLeg=true
  2094. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2095. bg=true
  2096. idle=false
  2097. basicsound:Play()
  2098. if basicswitch==false then
  2099. Tween(rw,cfn()*ang(mr(-100),mr(45),0),0.2)
  2100. Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
  2101. else
  2102. Tween(lw,cfn()*ang(mr(-100),mr(-45),0),0.2)
  2103. Tween(rj,cfn()*ang(0,mr(45),0),0.2)
  2104. end
  2105. wait(0.06)
  2106. local bullet=cp(tube,"Really black",Vector3.new(1,1,1),false,false)
  2107. bullet.Transparency=1
  2108. if basicswitch==false then
  2109. bullet.CFrame=righthandle.CFrame
  2110. bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  2111. basicswitch=true
  2112. else
  2113. bullet.CFrame=lefthandle.CFrame
  2114. bullet.CFrame=CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  2115. basicswitch=false
  2116. end
  2117. local bv=int('BodyVelocity',bullet)
  2118. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2119. bv.Velocity=bullet.CFrame.lookVector*150
  2120. local bulletfx=cp(tube,"Bright red",Vector3.new(1,1,1),true,false)
  2121. if basicswitch==false then
  2122. bulletfx.BrickColor=BrickColor.new('Really black')
  2123. end
  2124. bulletfx.CFrame=bullet.CFrame
  2125. bulletfx.Material='Neon'
  2126. sphere(bulletfx)
  2127. local angle=0
  2128. local bfsd=basicswitch
  2129. local lastpoint=bulletfx.CFrame
  2130. addCoolDown('Dark Missile')
  2131. addMover(bullet,0.8,function()
  2132. angle=angle+1
  2133. local angles=CFrame.Angles(math.rad(angle),mr(angle),0)
  2134. bulletfx.CFrame=bullet.CFrame
  2135. bulletfx.CFrame=bulletfx.CFrame*angles
  2136. if (lastpoint.p-bulletfx.CFrame.p).magnitude>1 then
  2137. local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Really black',angles)
  2138. --local ran=math.random(2)
  2139. if bfsd==true then
  2140. line.BrickColor=BrickColor.new('White')
  2141. end
  2142. addFx(line,0.05,'destroy',function()
  2143. line.blok.Scale=line.blok.Scale+Vector3.new(0.05,0,0.05)
  2144. line.Transparency=line.Transparency+0.05
  2145. end)
  2146. lastpoint=bulletfx.CFrame
  2147. end
  2148. end)
  2149. bullet.Touched:connect(function(p)
  2150. if not p:isDescendantOf(ch) then
  2151. local thing
  2152. local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
  2153. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  2154. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  2155. thing=v
  2156. break
  2157. end
  2158. end
  2159. local explosound=getSound(142070128)
  2160. explosound.Volume=0.8
  2161. explosound.Pitch=1.2
  2162. explosound.Parent=p
  2163. explosound:Play()
  2164. local position=bullet.CFrame
  2165. if thing and thing.Parent then
  2166. dealDamage(thing.Parent,20,5)
  2167. end
  2168. local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
  2169. if bfsd==false then
  2170. blast.BrickColor=BrickColor.new('White')
  2171. end
  2172. blast.Material='Neon'
  2173. local spm2=sphere(blast)
  2174. blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
  2175. addFx(blast,0.05,"destroy",function()
  2176. spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
  2177. blast.Transparency=blast.Transparency+0.05
  2178. end)
  2179. bullet:Destroy()
  2180. bulletfx:Destroy()
  2181. end
  2182. end)
  2183. game.Debris:AddItem(bullet,2.5)
  2184. game.Debris:AddItem(bulletfx,2.5)
  2185. wait(0.1)
  2186. idle=true
  2187. reset()
  2188. deb=false
  2189. animPlaying=false
  2190. bg=false
  2191. end,20)
  2192.  
  2193. local dumbbox=nil
  2194. local dhand=nil
  2195. local darknum=1
  2196.  
  2197. addMove('Dark Slash','r',2,function()
  2198. local oldspeed=hum.WalkSpeed
  2199. hum.WalkSpeed=0
  2200. local meshd='http://www.roblox.com/asset/?id=12171188'
  2201. tweenTable={}
  2202. altTweenTable={}
  2203. deb=true
  2204. animPlaying=true
  2205. canRunLeg=true
  2206. startsound2:Play()
  2207. local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
  2208. sp.CFrame=tor.CFrame
  2209. sp.Transparency=0.5
  2210. local sph=sphere(sp)
  2211. 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)
  2212. spawn(function()
  2213. for i=1,10 do
  2214. wait()
  2215. local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
  2216. local rnd=math.random(2)
  2217. if rnd==1 then
  2218. cool1.BrickColor=BrickColor.new('White')
  2219. cool1.Material='Neon'
  2220. end
  2221. local ms1=blo(cool1)
  2222. cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2223. 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)
  2224. end
  2225. end)
  2226. addCoolDown('Dark Slash')
  2227. local allahsword=cp(tube,'White',Vector3.new(1,1,1))
  2228. local critmultiplier=2.4
  2229. local spm=int('SpecialMesh',allahsword)
  2230. spm.MeshType='FileMesh'
  2231. spm.MeshId=meshd
  2232. allahsword.Transparency=1
  2233. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2234. 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
  2235. local col=BrickColor.new("Really black").Color
  2236. spm.TextureId=rbx..'132155326'
  2237. spm.Name='mesh'
  2238. spm.VertexColor=Vector3.new(0,0,0)
  2239. spm.Scale=Vector3.new(1,1,1)
  2240. addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
  2241. weld(ch['Right Arm'],allahsword,cfn(0,-4,-0.5)*ang(mr(110),0,mr(180)))
  2242. Tween(rj,cfn()*ang(0,mr(-90),0))
  2243. Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-55),mr(-35),0))
  2244. Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-55),mr(35),0))
  2245. Delay(0.08,function()
  2246. local tstvel=int('BodyVelocity',tor)
  2247. tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
  2248. tstvel.Velocity=tv*35
  2249. game.Debris:AddItem(tstvel,0.24)
  2250. end)
  2251. wait(0.22)
  2252. local hitbox=cp(tube,'White',Vector3.new(2,12,2))
  2253. hitbox.Transparency=1
  2254. hitbox.CFrame=allahsword.CFrame
  2255. dumbbox=hitbox
  2256. dumbhand=allahsword
  2257. swoosh:Play()
  2258. spawn(function()
  2259. for i=1,10 do
  2260. wait()
  2261. local trl=allahsword:clone()
  2262. trl.Parent=tube
  2263. trl.CFrame=allahsword.CFrame
  2264. if trl:findFirstChild('mesh') then
  2265. -- trl.mesh.VertexColor=Vector3.new(BrickColor.new('White').Color.r,BrickColor.new('White').Color.g,BrickColor.new('White').Color.b)
  2266. end
  2267. addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
  2268. end
  2269. end)
  2270. 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)
  2271. hitbox.Touched:connect(function(v)
  2272. if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
  2273. --print'touched'
  2274. local can=false
  2275. if not v.Parent:findFirstChild('HitDeb') then
  2276. can=true
  2277. end
  2278. if can==true then
  2279. local sls=getSound(220834020)
  2280. sls.Pitch=1+(math.random(3)/10)
  2281. sls.Parent=v
  2282. sls:Play()
  2283. local db=Instance.new('StringValue',v.Parent)
  2284. db.Name='HitDeb'
  2285. game.Debris:AddItem(db,0.5)
  2286. dealDamage(v.Parent,20+math.random(20),2,critmultiplier)
  2287. end
  2288. end
  2289. end)
  2290. Tween(rj,cfn(0,0,0)*ang(mr(0),mr(90),0))
  2291. Tween(rw,cfn(0.5,0.8,0)*ang(mr(-80),mr(-35),0))
  2292. Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-90),mr(35),0))
  2293. wait(0.2)
  2294. hitbox:Destroy()
  2295. hum.WalkSpeed=oldspeed
  2296. reset()
  2297. animPlaying=false
  2298. canRunLeg=false
  2299. deb=false
  2300. end,80)
  2301.  
  2302. --[[
  2303. addMove('Dark Slash2','r',2,function()
  2304. --http://www.roblox.com/asset/?id=12171188
  2305. local oldspeed=hum.WalkSpeed
  2306. if oldspeed==0 then
  2307. oldspeed=16
  2308. end
  2309. hum.WalkSpeed=0
  2310. local meshd='http://www.roblox.com/asset/?id=12171188'
  2311. tweenTable={}
  2312. altTweenTable={}
  2313. deb=true
  2314. idle=false
  2315. animPlaying=true
  2316. canRunLeg=true
  2317. tweenTable={}
  2318. altTweenTable={}
  2319. startsound3:Play()
  2320. Tween(rj,cfn(),1)
  2321. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2322. local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
  2323. sp.CFrame=tor.CFrame
  2324. sp.Transparency=0.5
  2325.  
  2326. local sph=sphere(sp)
  2327. 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)
  2328. spawn(function()
  2329. for i=1,10 do
  2330. wait()
  2331. local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
  2332. local ms1=blo(cool1)
  2333. cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2334. 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)
  2335. end
  2336. end)
  2337.  
  2338. --addCoolDown('Dark Slash2')
  2339. local allahsword=cp(tube,'White',Vector3.new(1,1,1))
  2340.  
  2341.  
  2342. local spm=int('SpecialMesh',allahsword)
  2343. spm.MeshType='FileMesh'
  2344. spm.MeshId=meshd
  2345. allahsword.Transparency=1
  2346. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2347. 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
  2348. local col=BrickColor.new("Really black").Color
  2349. spm.TextureId=rbx..'132155326'
  2350. spm.Name='mesh'
  2351. spm.VertexColor=Vector3.new(0,0,0)
  2352. spm.Scale=Vector3.new(1,1,1)
  2353. addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
  2354. weld(ch['Right Arm'],allahsword,cfn(0,-4,-2)*ang(-180,0,mr(-25)))--(-25)
  2355. local hitbox=cp(tube,'White',Vector3.new(2,12,2))
  2356. hitbox.Transparency=1
  2357. hitbox.CFrame=allahsword.CFrame
  2358. dumbbox=hitbox
  2359. dumbhand=allahsword
  2360. Tween(rj,cfn()*ang(0,mr(90),0))
  2361. Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-90),mr(-35),0))
  2362. Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-90),mr(35),0))
  2363.  
  2364. Delay(0.08,function()
  2365. local tstvel=int('BodyVelocity',tor)
  2366. tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
  2367. tstvel.Velocity=tv*35
  2368. game.Debris:AddItem(tstvel,0.24)
  2369. end)
  2370.  
  2371. wait(0.22)
  2372. swoosh:Play()
  2373. spawn(function()
  2374. for i=1,10 do
  2375. wait()
  2376. local trl=allahsword:clone()
  2377. trl.Parent=tube
  2378. trl.CFrame=allahsword.CFrame
  2379. addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
  2380. end
  2381. end)
  2382. addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) end)
  2383. hitbox.Touched:connect(function(v)
  2384. if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
  2385. --print'touched'
  2386. local can=false
  2387. if not v.Parent:findFirstChild('HitDeb') then
  2388. can=true
  2389. end
  2390. if can==true then
  2391. local sls=getSound(220834020)
  2392. sls.Pitch=1+(math.random(3)/10)
  2393. sls.Parent=v
  2394. sls:Play()
  2395. local db=Instance.new('StringValue',v.Parent)
  2396. db.Name='HitDeb'
  2397. game.Debris:AddItem(db,0.5)
  2398. dealDamage(v.Parent,20+math.random(20),10)
  2399. end
  2400. end
  2401. end)
  2402. Tween(rj,cfn(0,0,0)*ang(mr(0),mr(-90),0))
  2403. Tween(rw,cfn(0.5,0.8,0)*ang(mr(-20),mr(-35),0)) --(-10)
  2404. Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-20),mr(35),0))
  2405. wait(0.2)
  2406. hitbox:Destroy()
  2407. hum.WalkSpeed=oldspeed
  2408. reset()
  2409. deb=false
  2410. animPlaying=false
  2411. canRunLeg=false
  2412. end)
  2413. ]]
  2414.  
  2415. addMove('Origin Beam','mb1,mb1,e',12,function()
  2416. tweenTable={}
  2417. altTweenTable={}
  2418. animPlaying=true
  2419. deb=true
  2420. apoc:Play()
  2421. spawn(function()
  2422. for i=1,15 do
  2423. wait()
  2424. local fx=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2425. fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2426. local bl=blo(fx)
  2427. local ran=math.random(2)
  2428. if ran==1 then
  2429. fx.BrickColor=BrickColor.new('White')
  2430. end
  2431. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  2432. local fx=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2433. local ran=math.random(2)
  2434. if ran==1 then
  2435. fx.BrickColor=BrickColor.new('Bright red')
  2436. end
  2437. fx.CFrame=lefthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2438. local bl=blo(fx)
  2439. addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
  2440. end
  2441. end)
  2442. Tween(rw,cfn()*ang(mr(-90),mr(45),0))
  2443. Tween(lw,cfn()*ang(mr(-90),mr(-45),0))
  2444. wait(0.2)
  2445. Tween(rw,cfn()*ang(mr(-90),mr(-45),0))
  2446. Tween(lw,cfn()*ang(mr(-90),mr(45),0))
  2447. wait(0.5)
  2448. apoc.Volume=2
  2449. local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
  2450. bg=true
  2451. local ray = Ray.new(righthandle.CFrame.p, (mouse.Hit.p - righthandle.CFrame.p).unit * 300)
  2452. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  2453. local distance = (righthandle.CFrame.p - position).magnitude
  2454. beam.Size = Vector3.new(2, distance, 2)
  2455. beam.Material='Neon'
  2456. beam.CFrame = CFrame.new(righthandle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)*ang(mr(-90),0,0)
  2457. if part --[[and part.Parent]] then
  2458. --if part.Parent:findFirstChild'Humanoid' then
  2459. -- dealDamage(part.Parent,5,3,2)
  2460. --end
  2461. local region=CreateRegion3FromLocAndSize(m.Hit.p,Vector3.new(6,6,6))
  2462. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
  2463. if v.Parent and v.Parent:findFirstChild'Humanoid' then
  2464. thing=v
  2465. break
  2466. end
  2467. end
  2468. if thing then
  2469. dealDamage(thing.Parent,5,3,2)
  2470. end
  2471. end
  2472. local msh=cyl(beam)
  2473. local up=false
  2474. addFx(beam,0.02,nil,function()
  2475. -- local mn=depleteMana(10)
  2476. -- if mn then
  2477. ray = Ray.new(righthandle.CFrame.p, (mouse.Hit.p - righthandle.CFrame.p).unit * 300)
  2478. local part, position = workspace:FindPartOnRay(ray, ch, false, true)
  2479. if part and part.Parent then
  2480. if part.Parent:findFirstChild'Humanoid' then
  2481. dealDamage(part.Parent,2,3,2)
  2482. end
  2483. end
  2484. local distance = (righthandle.CFrame.p - position).magnitude
  2485. beam.Size = Vector3.new(2, distance, 2)
  2486. beam.CFrame = CFrame.new(righthandle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)*ang(mr(-90),0,0)
  2487. local brck=cp(tube,'Really black',Vector3.new(3.5,3.5,3.5),true)
  2488. brck.CFrame=m.Hit*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  2489. brck.Material='Neon'
  2490. local ran=math.random(2)
  2491. if ran==1 then
  2492. brck.BrickColor=BrickColor.new('White')
  2493. end
  2494. local bm=blo(brck)
  2495. addFx(brck,0.07,'destroy',function() bm.Scale=bm.Scale+Vector3.new(0.1,0.1,0.1) brck.Transparency=brck.Transparency+0.07 end)
  2496. --end
  2497. end)
  2498. wait(1)
  2499. addCoolDown('Origin Beam')
  2500. addFx(beam,0.07,'destroy',function() beam.Transparency=beam.Transparency+0.07 msh.Scale=msh.Scale-Vector3.new(0.07,0,0.07) end)
  2501. animPlaying=false
  2502. deb=false
  2503. bg=false
  2504. apoc.Volume=1
  2505. end,180)
  2506.  
  2507. addMove('Nightmare Overture','z',60,function()
  2508. if Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 then
  2509. hum.WalkSpeed=0
  2510. animPlaying=true
  2511. local ev
  2512. local tfn=tor.CFrame
  2513. deb=true
  2514. local done=false
  2515. local done2=false
  2516. local stakes={}
  2517. local dmds={}
  2518. tweenTable={}
  2519. altTweenTable={}
  2520. --Tween(rj,cfn()*ang(mr(45),0,0))
  2521. Tween(rw,cfn()*ang(mr(-110),mr(25),0),0.05)
  2522. Tween(lw,cfn()*ang(mr(-110),mr(-25),0),0.05)
  2523. resetLegs()
  2524. wait(0.5)
  2525. local circ=cp(tube,'Really black',Vector3.new(34,1,34),true)
  2526. circ.Transparency=1
  2527. circ.CFrame=tor.CFrame*CFrame.new(0,-3.3,0)
  2528. local d=int('Decal',circ)
  2529. d.Face='Top'
  2530. d.Texture=magcd
  2531.  
  2532. local stake1=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2533. local cm=cyl(stake1)
  2534. cm.Scale=Vector3.new(0,0,0)
  2535. stake1.CFrame=tfn*cfn(9,3,0)
  2536. stake1.Transparency=1
  2537. stake1.Material='Neon'
  2538. local snd=getSound(231917773)
  2539. snd.Parent=stake1
  2540. snd.Volume=2
  2541. snd:Play()
  2542. addFx(stake1,0.1,nil,function()
  2543. stake1.Transparency=stake1.Transparency-0.1
  2544. cm.Scale=cm.Scale+Vector3.new(0.1,0.1,0.1)
  2545. end)
  2546. table.insert(stakes,stake1)
  2547. local sdm1=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2548. sdm1.CFrame=stake1.CFrame
  2549. sdm1.Transparency=1
  2550. local sdm1m=newSpm(sdm1)
  2551. sdm1m.MeshId=rbx..lib.diamond
  2552. sdm1m.Scale=Vector3.new(2,3,2)
  2553. sdm1m.Scale=Vector3.new(0,0,0)
  2554. addFx(sdm1,0.05,nil,function()
  2555. sdm1.CFrame=sdm1.CFrame*CFrame.new(0,0.6,0)
  2556. sdm1m.Scale=sdm1m.Scale+Vector3.new(0.1,0.15,0.1)
  2557. sdm1.Transparency=sdm1.Transparency-0.05
  2558. --sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2559. end)
  2560. table.insert(dmds,sdm1)
  2561. local angle=0
  2562. spawn(function()
  2563. repeat wait()
  2564. angle=angle+1
  2565. circ.CFrame=circ.CFrame*ang(0,mr(1),0)
  2566. until done==true
  2567. end)
  2568. spawn(function() --crown
  2569. repeat wait(0.1)
  2570. local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2571. crn.CFrame=tor.CFrame*cfn(0,-5.5,0)
  2572. local ms=newSpm(crn)
  2573. ms.TextureId=rbx..'132155326'
  2574. ms.MeshId=rbx..lib.crown
  2575. ms.VertexColor=Vector3.new(0,0,0)
  2576. ms.Scale=Vector3.new(1.5,1,1.5)
  2577. --angle=angle+1
  2578. --circ.CFrame=circ.CFrame*ang(0,mr(1),0)
  2579. addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.8,0.05,0.8) end)
  2580. local bgmc=bigmagic:clone()
  2581. bgmc.Parent=ch.Head
  2582. bgmc.Volume=0.3
  2583. bgmc.Pitch=0.8
  2584. bgmc:Play()
  2585. until done2==true
  2586. end)
  2587. spawn(function()
  2588. wait(0.4)
  2589. repeat wait()
  2590. sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2591. until done==true
  2592. end)
  2593. wait(0.1)
  2594. local stake2=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2595. local cm2=cyl(stake2)
  2596. cm2.Scale=Vector3.new(0,0,0)
  2597. stake2.CFrame=tfn*cfn(-9,3,0)
  2598. stake2.Transparency=1
  2599. stake2.Material='Neon'
  2600. local snd=getSound(231917773)
  2601. snd.Parent=stake2
  2602. snd.Volume=2
  2603. snd:Play()
  2604. addFx(stake2,0.1,nil,function()
  2605. stake2.Transparency=stake2.Transparency-0.1
  2606. cm2.Scale=cm2.Scale+Vector3.new(0.1,0.1,0.1)
  2607. end)
  2608. table.insert(stakes,stake2)
  2609. local sdm2=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2610. sdm2.CFrame=stake2.CFrame
  2611. sdm2.Transparency=1
  2612. local sdm2m=newSpm(sdm2)
  2613. sdm2m.MeshId=rbx..lib.diamond
  2614. sdm2m.Scale=Vector3.new(2,3,2)
  2615. sdm2m.Scale=Vector3.new(0,0,0)
  2616. addFx(sdm2,0.05,nil,function()
  2617. sdm2.CFrame=sdm2.CFrame*CFrame.new(0,0.6,0)
  2618. sdm2m.Scale=sdm2m.Scale+Vector3.new(0.1,0.15,0.1)
  2619. sdm2.Transparency=sdm2.Transparency-0.05
  2620. --sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2621. end)
  2622. spawn(function()
  2623. wait(0.4)
  2624. repeat wait()
  2625. sdm2.CFrame=CFrame.new(sdm2.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2626. until done==true
  2627. end)
  2628. table.insert(dmds,sdm2)
  2629. wait(0.1)
  2630. local stake3=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2631. local cm3=cyl(stake3)
  2632. cm3.Scale=Vector3.new(0,0,0)
  2633. stake3.CFrame=tfn*cfn(0,3,9)
  2634. stake3.Transparency=1
  2635. stake3.Material='Neon'
  2636. local snd=getSound(231917773)
  2637. snd.Parent=stake3
  2638. snd.Volume=2
  2639. snd:Play()
  2640. addFx(stake3,0.1,nil,function()
  2641. stake3.Transparency=stake3.Transparency-0.1
  2642. cm3.Scale=cm3.Scale+Vector3.new(0.1,0.1,0.1)
  2643. end)
  2644. table.insert(stakes,stake3)
  2645. local sdm3=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2646. sdm3.CFrame=stake3.CFrame
  2647. sdm3.Transparency=1
  2648. local sdm3m=newSpm(sdm3)
  2649. sdm3m.MeshId=rbx..lib.diamond
  2650. sdm3m.Scale=Vector3.new(2,3,2)
  2651. sdm3m.Scale=Vector3.new(0,0,0)
  2652. addFx(sdm3,0.05,nil,function()
  2653. sdm3.CFrame=sdm3.CFrame*CFrame.new(0,0.6,0)
  2654. sdm3m.Scale=sdm3m.Scale+Vector3.new(0.1,0.15,0.1)
  2655. sdm3.Transparency=sdm3.Transparency-0.05
  2656. --sdm3.CFrame=CFrame.new(sdm3.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2657. end)
  2658. spawn(function()
  2659. wait(0.4)
  2660. repeat wait()
  2661. sdm3.CFrame=CFrame.new(sdm3.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2662. until done==true
  2663. end)
  2664. table.insert(dmds,sdm3)
  2665. wait(0.1)
  2666. local stake4=cp(tube,'Really black',Vector3.new(4,14,4),true)
  2667. local cm4=cyl(stake4)
  2668. cm4.Scale=Vector3.new(0,0,0)
  2669. stake4.CFrame=tfn*cfn(0,3,-9)
  2670. stake4.Transparency=1
  2671. stake4.Material='Neon'
  2672. local snd=getSound(231917773)
  2673. snd.Parent=stake4
  2674. snd.Volume=2
  2675. snd:Play()
  2676. addFx(stake4,0.1,nil,function()
  2677. stake4.Transparency=stake4.Transparency-0.1
  2678. cm4.Scale=cm4.Scale+Vector3.new(0.1,0.1,0.1)
  2679. end)
  2680. table.insert(stakes,stake4)
  2681. local sdm4=cp(tube,'Really black',Vector3.new(4,6,4),true)
  2682. sdm4.CFrame=stake4.CFrame
  2683. sdm4.Transparency=1
  2684. local sdm4m=newSpm(sdm4)
  2685. sdm4m.MeshId=rbx..lib.diamond
  2686. sdm4m.Scale=Vector3.new(2,3,2)
  2687. sdm4m.Scale=Vector3.new(0,0,0)
  2688. addFx(sdm4,0.05,nil,function()
  2689. sdm4.CFrame=sdm4.CFrame*CFrame.new(0,0.6,0)
  2690. sdm4m.Scale=sdm4m.Scale+Vector3.new(0.1,0.15,0.1)
  2691. sdm4.Transparency=sdm4.Transparency-0.05
  2692. --sdm4.CFrame=CFrame.new(sdm4.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2693. end)
  2694. spawn(function()
  2695. wait(0.4)
  2696. repeat wait()
  2697. sdm4.CFrame=CFrame.new(sdm4.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
  2698. until done==true
  2699. end)
  2700. table.insert(dmds,sdm4)
  2701. wait(0.1)
  2702. local bv=int('BodyVelocity',tor)
  2703. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2704. bv.Velocity=Vector3.new(0,7,0)
  2705. rise:Play()
  2706. local tdia=cp(tube,'Really black',Vector3.new(6,6,6))
  2707. tdia.Transparency=1
  2708. local tdiam=newSpm(tdia)
  2709. tdiam.MeshId=rbx..lib.diamond
  2710. tdiam.Name='mesh'
  2711. tdiam.Scale=Vector3.new(6,8,6)
  2712. tdiam.Scale=Vector3.new(0,0,0)
  2713. addFx(tdiam,0.05,nil,function()
  2714. tdiam.Scale=tdiam.Scale+Vector3.new(0.36,0.48,0.38)
  2715. tdia.Transparency=tdia.Transparency-0.05
  2716. end)
  2717.  
  2718. weld(tor,tdia,cfn())
  2719. wait(3)
  2720. bv.Velocity=Vector3.new(0,0,0)
  2721. done2=true
  2722. for _,v in pairs(stakes) do
  2723. wait(0.1)
  2724. local nsnd=getSound(231917773)
  2725. snd.Parent=v
  2726. snd.Volume=2
  2727. snd.Pitch=1.3
  2728. snd:Play()
  2729. addFx(v,0.05,'destroy',function() v.mesh.Scale=v.mesh.Scale-Vector3.new(0.05,0.05,0.05) v.Transparency=v.Transparency+0.05 end)
  2730. end
  2731. local dm=1
  2732. local lastd=false
  2733. ev=m.Button1Down:connect(function()
  2734. if dm~=5 then
  2735. ultdi.Volume=2.4
  2736. ultdi:Play()
  2737. local pulse=tdia:clone()
  2738. pulse.Anchored=true
  2739. pulse.CFrame=tdia.CFrame
  2740. pulse.Parent=tube
  2741. pulse.BrickColor=BrickColor.new('White')
  2742. addFx(pulse,0.1,'destroy',function() pulse.mesh.Scale=pulse.mesh.Scale+Vector3.new(0.4,0.4,0.4) pulse.Transparency=pulse.Transparency+0.1 end)
  2743. local di=dmds[dm]:clone()
  2744. debris:AddItem(di,6)
  2745. di.CFrame=dmds[dm].CFrame
  2746. di.Parent=tube
  2747. dmds[dm]:Destroy()
  2748. di.Anchored=false
  2749. di:BreakJoints(0)
  2750. local nbv=int('BodyVelocity',di)
  2751. nbv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2752. di.CFrame=CFrame.new(di.CFrame.p,Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
  2753. nbv.Velocity=di.CFrame.lookVector*150
  2754. di.CFrame=di.CFrame*ang(mr(-90),0,0)
  2755. dm=dm+1
  2756. local bulletfx=di
  2757. addMover(di,0.8,function()
  2758. --bullet.CFrame=bullet.CFrame*angles
  2759. local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
  2760. fxp.CFrame=bulletfx.CFrame*ang(mr(-90),0,0)
  2761. local bmesh=int('SpecialMesh',fxp)
  2762. bmesh.MeshType='FileMesh'
  2763. bmesh.MeshId=rbx..lib.ring
  2764. bmesh.Scale=Vector3.new(2.5,2.5,2.5)
  2765. addFx(fxp,0.07,'destroy',function() bmesh.Scale=bmesh.Scale+Vector3.new(0.2,0.2,0) fxp.Transparency=fxp.Transparency+0.07 end)
  2766. end)
  2767. di.Touched:connect(function(part)
  2768. if part:IsDescendantOf(ch)==false then
  2769. di:Destroy()
  2770. local blast=cp(tube,'Really black',Vector3.new(20,20,20),true)
  2771. blast.CFrame=di.CFrame
  2772. local sp=sphere(blast)
  2773. blast.Material='Neon'
  2774. sp.Scale=Vector3.new(0.05,0.05,0.05)
  2775. local bfx=blast:clone()
  2776. bfx.Parent=tube
  2777. bfx.CFrame=blast.CFrame
  2778. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  2779. local people={}
  2780. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2781. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2782. local can=false
  2783. if not v.Parent:findFirstChild('HitDeb') then
  2784. can=true
  2785. end
  2786. if can==true then
  2787. local db=Instance.new('StringValue',v.Parent)
  2788. db.Name='HitDeb'
  2789. game.Debris:AddItem(db,0.5)
  2790. local humin=v.Parent.Humanoid
  2791. if humin then
  2792. local php=humin.Health
  2793. dealDamage(humin.Parent,40,3,2,0.05)
  2794. humin.Sit=true
  2795. humin.PlatformStand=true
  2796. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2797. print('equal')
  2798. humin:TakeDamage(40)
  2799. end
  2800. end
  2801. end
  2802. end
  2803. end
  2804. bfx.BrickColor=BrickColor.new('White')
  2805. -- bfx.Mesh.Scale=Vector3.new(0,0,0)
  2806. bfx:clearAllChildren()
  2807. local sp2=sphere(bfx)
  2808. sp2.Scale=Vector3.new(0,0,0)
  2809. addFx(bfx,0.007,'destroy',function() sp2.Scale=sp2.Scale+Vector3.new(0.1,0.1,0.1) bfx.Transparency=bfx.Transparency+0.007 end)
  2810. addFx(blast,0.007,'destroy',function() sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) blast.Transparency=blast.Transparency+0.007 end)
  2811. local hg=giantexplosion:clone()
  2812. hg.Volume=10
  2813. hg.Parent=blast
  2814. hg:Play()
  2815. end
  2816. end)
  2817. else
  2818. ev:Disconnect()
  2819. explodcharg:Play()
  2820. repeat wait()
  2821. local pulse=tdia:clone()
  2822. pulse.Anchored=true
  2823. pulse.CFrame=tdia.CFrame
  2824. pulse.Parent=tube
  2825. pulse.BrickColor=BrickColor.new('White')
  2826. pulse:clearAllChildren()
  2827. local pm=tdiam:clone()
  2828. pm.Parent=pulse
  2829. addFx(pulse,0.1,'destroy',function() pm.Scale=pm.Scale+Vector3.new(0.4,0.4,0.4) pulse.Transparency=pulse.Transparency+0.1 end)
  2830. until explodcharg.IsPlaying==false
  2831. circ:Destroy()
  2832. addFx(tdia,0.07,'destroy',function() tdia.Transparency=tdia.Transparency+0.07 end)
  2833. hum.WalkSpeed=regws
  2834. deb=false
  2835. animPlaying=false
  2836. bv:Destroy()
  2837. --mega explosion
  2838. local blast=cp(tube,'Really black',Vector3.new(60,60,60),true)
  2839. blast.CFrame=tor.CFrame
  2840. local sp=sphere(blast)
  2841. blast.Material='Neon'
  2842. blast.Transparency=0.1
  2843. sp.Scale=Vector3.new(0.05,0.05,0.05)
  2844. local bfx=blast:clone()
  2845. bfx.Parent=tube
  2846. bfx.CFrame=blast.CFrame
  2847. bfx.Transparency=0.1
  2848. local rng=cp(tube,'White',Vector3.new(60,60,60),true)
  2849. rng.CFrame=blast.CFrame*ang(mr(-90),0,0)
  2850. local rn=newSpm(rng)
  2851. rn.MeshId=rbx..lib.ring
  2852. rn.Scale=Vector3.new(90,40,90)
  2853. addFx(rng,0.005,'destroy',function()
  2854. rn.Scale=rn.Scale+Vector3.new(5,5,0)
  2855. rng.Transparency=rng.Transparency+0.005
  2856. end)
  2857.  
  2858. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
  2859. local people={}
  2860.  
  2861.  
  2862. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2863. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2864. local can=false
  2865. if not v.Parent:findFirstChild('HitDeb') then
  2866. can=true
  2867. end
  2868. if can==true then
  2869. local thing=v
  2870. local db=Instance.new('StringValue',v.Parent)
  2871. db.Name='HitDeb'
  2872. game.Debris:AddItem(db,0.5)
  2873. local humin=v.Parent.Humanoid
  2874. if humin then
  2875. local php=humin.Health
  2876. dealDamage(humin.Parent,.3*humin.MaxHealth,3,2,0.05)
  2877. humin.Sit=true
  2878. humin.PlatformStand=true
  2879. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2880. print('equal')
  2881. humin:TakeDamage(30)
  2882. end
  2883. end
  2884. if thing and thing.Parent then
  2885. if thing.Parent:findFirstChild('Head') then
  2886. displayText(thing.Parent.Head,'Cursed','Really black')
  2887. else
  2888. displayText(thing,'Cursed','Really black')
  2889. end
  2890. end
  2891. if thing and thing.Parent then
  2892. dealDamage(thing.Parent,5,5)
  2893. local humin=thing.Parent.Humanoid
  2894. spawn(function()
  2895. for i=1,10 do
  2896. wait(1)
  2897. if thing.Parent then
  2898. dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)
  2899. end
  2900. end
  2901. end)
  2902. end
  2903. end
  2904. end
  2905. end
  2906. bfx.BrickColor=BrickColor.new('White')
  2907. done=true
  2908. -- bfx.Mesh.Scale=Vector3.new(0,0,0)
  2909. bfx:clearAllChildren()
  2910. local sp2=sphere(bfx)
  2911. sp2.Scale=Vector3.new(0,0,0)
  2912. local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
  2913. mgp.Transparency=1
  2914. mgp.CFrame=blast.CFrame
  2915. game.Debris:AddItem(mgp,8)
  2916. addFx(bfx,0.004,'destroy',function() sp2.Scale=sp2.Scale+Vector3.new(0.09,0.09,0.09) bfx.Transparency=bfx.Transparency+0.004 end)
  2917. addFx(blast,0.004,'destroy',function() sp.Scale=sp.Scale+Vector3.new(0.09,0.09,0.09) blast.Transparency=blast.Transparency+0.004 end)
  2918. local hg=getSound(221920822)
  2919. hg.Pitch=0.8
  2920. hg.Volume=10
  2921. hg.Parent=mgp
  2922. hg:Play()
  2923. addCoolDown('Nightmare Overture')
  2924. end
  2925. end)
  2926. --end
  2927. else
  2928. return false
  2929. end
  2930. end,800)
  2931.  
  2932. --links
  2933. --[[
  2934. https://gyazo.com/2bb44f565b143e8025e5cdfc555a641a
  2935. https://gyazo.com/20a0fd027484f894623cd8d387196c09
  2936. ]]
  2937.  
  2938. addMove('Dark Spikes','t',0.4,function()
  2939. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  2940. local lv=tor.CFrame
  2941. tweenTable={}
  2942. animPlaying=true
  2943. deb=true
  2944. canRunLeg=true
  2945. magictone1:Play()
  2946. Tween(rj,cfn()*ang(0,mr(25),0),0.2)
  2947. Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
  2948. wait(0.2)
  2949. Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
  2950. Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
  2951. Tween(neck,cfn()*ang(0,mr(55),0))
  2952. local spot=4
  2953. addCoolDown('Dark Spikes')
  2954. for i=1,10 do
  2955. wait(0.1)
  2956. local v=lv.lookVector*spot
  2957. --print(v)
  2958. spot=spot+14
  2959. local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
  2960. spike.CFrame=lv*CFrame.new(0,0,-spot)
  2961. local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
  2962. local dml=cyl(dam)
  2963. local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
  2964. local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
  2965. if bhit then
  2966. spike.CFrame=pos*CFrame.new(0,0,0)
  2967. local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
  2968. mgp.Transparency=1
  2969. mgp.CFrame=spike.CFrame
  2970. game.Debris:AddItem(mgp,2)
  2971. local sn=spexp:clone()
  2972. sn.Parent=mgp
  2973. sn.Volume=2
  2974. sn:Play()
  2975. dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
  2976. local blast=dam
  2977. local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
  2978. local people={}
  2979. for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
  2980. if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
  2981. local can=false
  2982. if not v.Parent:findFirstChild('HitDeb') then
  2983. can=true
  2984. end
  2985. if can==true then
  2986. local db=Instance.new('StringValue',v.Parent)
  2987. db.Name='HitDeb'
  2988. game.Debris:AddItem(db,0.2)
  2989. local humin=v.Parent.Humanoid
  2990. if humin then
  2991. local php=humin.Health
  2992. dealDamage(humin.Parent,10+math.random(3),2)
  2993. local testvel=int('BodyVelocity',v)
  2994. testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2995. testvel.Velocity=lv.lookVector*100
  2996. game.Debris:addItem(testvel,1)
  2997. humin.Sit=true
  2998. if humin.Health>=php and humin.MaxHealth~=math.huge then
  2999. print('equal')
  3000. humin:TakeDamage(20)
  3001. end
  3002. end
  3003. end
  3004. end
  3005. end
  3006. local cl=cyl(spike)
  3007. addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
  3008. 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)
  3009. else
  3010. spike:Destroy()
  3011. end
  3012. end
  3013. wait(0.7)
  3014. deb=false
  3015. canRunLeg=false
  3016. animPlaying=false
  3017. reset()
  3018. end,30)
  3019.  
  3020. mouse.Button1Down:connect(function()
  3021. if not deb then
  3022. rcombostring=rcombostring..'mb1'
  3023. executeMove('Dark Missile')
  3024. --print('movers:' .. #movers)
  3025. --print('fx:' .. #fx)
  3026. --print('tweens: ' .. #tweenTable)
  3027. end
  3028. end)
  3029.  
  3030. local vt
  3031. local dodgecool=false
  3032.  
  3033. iPart=function(tab) --tigrebloodd
  3034. local v=Instance.new(tab.type or 'Part')
  3035. if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
  3036. v.CanCollide=false
  3037. v.TopSurface=0 v.BottomSurface=0
  3038. v.Size=v3(tab[2],tab[3],tab[4])
  3039. if tab.co then v.BrickColor=bn(tab.co) end
  3040. if tab.tr then v.Transparency=tab.tr end
  3041. if tab.rf then v.Reflectance=tab.rf end
  3042. if tab.cf then v.CFrame=tab.cf end
  3043. if tab.an then v.Anchored=tab.an end
  3044. v.Parent=tab[1]
  3045. LastMade=v
  3046. return v
  3047. end
  3048.  
  3049. iNew=function(tab) --tigrebloodd
  3050. local v=Instance.new(tab[1])
  3051. for Ind,Val in pairs(tab) do
  3052. if Ind~=1 and Ind~=2 then
  3053. v[Ind] = Val
  3054. end
  3055. end
  3056. v.Parent=tab[2]==0 and LastMade or tab[2]
  3057. LastMade=v
  3058. return v
  3059. end
  3060.  
  3061. -- Antiboomz0r's functions -----------------------------------------------------------------
  3062.  
  3063. local ppart = iPart{nil,0.2,0.2,0.2}
  3064. ppart.Material = "SmoothPlastic"
  3065. ppart.TopSurface = "SmoothNoOutlines"
  3066. ppart.BottomSurface = "SmoothNoOutlines"
  3067. ppart.RightSurface = "SmoothNoOutlines"
  3068. ppart.LeftSurface = "SmoothNoOutlines"
  3069. ppart.Transparency=0
  3070. ppart.Anchored=true
  3071. --ppart.Parent=tube
  3072.  
  3073. local function CFrameFromTopBack(at, top, back)
  3074. local right = top:Cross(back)
  3075. return CFrame.new(at.x, at.y, at.z,
  3076. right.x, top.x, back.x,
  3077. right.y, top.y, back.y,
  3078. right.z, top.z, back.z)
  3079. end
  3080.  
  3081. function Triangle(a, b, c)
  3082. local edg1 = (c-a):Dot((b-a).unit)
  3083. local edg2 = (a-b):Dot((c-b).unit)
  3084. local edg3 = (b-c):Dot((a-c).unit)
  3085. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  3086. a, b, c = a, b, c
  3087. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  3088. a, b, c = b, c, a
  3089. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  3090. a, b, c = c, a, b
  3091. else
  3092. print("unreachable")
  3093. end
  3094. local len1 = (c-a):Dot((b-a).unit)
  3095. local len2 = (b-a).magnitude - len1
  3096. local width = (a + (b-a).unit*len1 - c).magnitude
  3097. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  3098. local list = {}
  3099. if len1 > 0.01 then
  3100. local w1 = iNew{
  3101. "WedgePart",
  3102. Pack,
  3103. FormFactor="Custom",
  3104. BrickColor=ppart.BrickColor,
  3105. Transparency=ppart.Transparency,
  3106. Reflectance=ppart.Reflectance,
  3107. Material=ppart.Material,
  3108. CanCollide=ppart.CanCollide
  3109. }
  3110. local sz = v3(0.2, width, len1)
  3111. w1.Size = sz
  3112. local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size}
  3113. w1.Parent=tube
  3114. w1:BreakJoints()
  3115. w1.Anchored = true
  3116. w1.Transparency = 0.7
  3117. Spawn(function()
  3118. for i=0,1,0.1 do
  3119. wait()
  3120. w1.Transparency=w1.Transparency+0.03
  3121. end
  3122. end)
  3123. w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2)
  3124. table.insert(list,w1)
  3125. end
  3126. if len2 > 0.01 then
  3127. local w2 = iNew{
  3128. "WedgePart",
  3129. Pack,
  3130. FormFactor="Custom",
  3131. BrickColor=ppart.BrickColor,
  3132. Transparency=ppart.Transparency,
  3133. Reflectance=ppart.Reflectance,
  3134. Material=ppart.Material,
  3135. CanCollide=ppart.CanCollide
  3136. }
  3137. local sz = v3(0.2, width, len2)
  3138. w2.Size = sz
  3139. local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size}
  3140. w2.Parent=tube
  3141. w2:BreakJoints()
  3142. w2.Anchored = true
  3143. w2.Transparency = 0.7
  3144. Spawn(function()
  3145. for i=0,1,0.1 do
  3146. wait()
  3147. w2.Transparency=w2.Transparency+0.03
  3148. end
  3149. end)
  3150. w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2)
  3151. table.insert(list,w2)
  3152. end
  3153. return unpack(list)
  3154. end
  3155.  
  3156. bclf=ch['Right Arm'].CFrame
  3157. scfr=bclf
  3158.  
  3159. --[[
  3160. while wait() do--test
  3161.  
  3162. local h=3.8
  3163. 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)
  3164. scfr=bclf
  3165. bclf=ch['Right Arm'].CFrame
  3166. 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)
  3167. print(a.Parent)
  3168. print(a.CFrame)
  3169. end
  3170. ]]
  3171.  
  3172. -- Antiboomz0r's functions -----------------------------------------------------------------
  3173.  
  3174. -------------------tigrebloodd functions------------------------------
  3175.  
  3176. ca=CFrame.Angles
  3177. cn=CFrame.new
  3178. v3=Vector3.new
  3179.  
  3180. function Raycast(Pos,Dir,Ign)
  3181. return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign)
  3182. end
  3183.  
  3184. function FindGround(cf,ig)
  3185. local ax,ay,az = cf:toEulerAnglesXYZ()
  3186. local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig)
  3187. if bhit and bpos then
  3188. return bhit,cn(bpos)*ca(ax,ay,az)
  3189. end
  3190. end
  3191. -------------------tigrebloodd functions----------------------------
  3192.  
  3193. currentkey=''
  3194.  
  3195. mouse.KeyDown:connect(function(key)
  3196. if key=='q' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
  3197. executeMove('Down Slam')
  3198. elseif key=='r' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
  3199. executeMove('Aerial Sword')
  3200. end
  3201. if key=='i' then
  3202. print('movers:' .. #movers)
  3203. print('fx:' .. #fx)
  3204. print('tweens: ' .. #tweenTable)
  3205. end
  3206. if string.byte(key)==32 and canExecuteMoves==true then
  3207. combostring=combostring..'.'
  3208. spawn(function()
  3209. jump()
  3210. end)
  3211. --jump()
  3212. if combostring:match('..') and dodgecool==false then
  3213. currentkey=tostring(string.byte(key))
  3214. animPlaying=true
  3215. altTween(rj,cfn()*ang(mr(-15),0,0))
  3216. altTween(rw,cfn()*ang(mr(10),0,mr(-15)))
  3217. altTween(lw,cfn()*ang(mr(10),0,mr(15)))
  3218. dodgecool=true
  3219. combostring=[[]]
  3220. local rv=tor.CFrame.upVector
  3221. local bv=int('BodyVelocity',tor)
  3222. dodgesound:Play()
  3223. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  3224. bv.Velocity=rv*150
  3225. spawn(function()
  3226. for i=1,14 do
  3227. wait()
  3228. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  3229. --cfx.Material='Neon'
  3230. local ran=math.random(2)
  3231. if ran==1 then
  3232. cfx.BrickColor=BrickColor.new('White')
  3233. cfx.Material='Neon'
  3234. end
  3235. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  3236. local b=blo(cfx)
  3237. addFx(cfx,0.05,'destroy',function()
  3238. cfx.Transparency=cfx.Transparency+0.05
  3239. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  3240. end)
  3241. end
  3242. end)
  3243. wait()
  3244. bv:Destroy()
  3245. wait(0.4)
  3246. reset()
  3247. dodgecool=false
  3248. wait(0.4)
  3249. if currentkey=='32' then
  3250. currentkey=''
  3251. end
  3252. if not deb then
  3253. animPlaying=false
  3254. end
  3255. --repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
  3256. --currentkey
  3257. end
  3258. elseif string.byte(key)==48 and canExecuteMoves==true then
  3259. sprinting=true
  3260. hum.WalkSpeed=24
  3261. end
  3262. if key=='d' and canExecuteMoves==true then
  3263. combostring=combostring..'d'
  3264. if combostring:match('dd') and dodgecool==false then
  3265. --animPlaying=true
  3266. dodgecool=true
  3267. combostring=[[]]
  3268. local rv=cam.CFrame.rightVector
  3269. local bv=int('BodyVelocity',tor)
  3270. dodgesound:Play()
  3271. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  3272. bv.Velocity=rv*150
  3273. --Tween(rj,cfn()*ang(mr(90),0,0))
  3274. spawn(function()
  3275. for i=1,16 do
  3276. wait()
  3277. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  3278. local ran=math.random(2)
  3279. if ran==1 then
  3280. cfx.BrickColor=BrickColor.new('White')
  3281. cfx.Material='Neon'
  3282. end
  3283. --cfx.Material='Neon'
  3284. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  3285. local b=blo(cfx)
  3286. addFx(cfx,0.05,'destroy',function()
  3287. cfx.Transparency=cfx.Transparency+0.05
  3288. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  3289. end)
  3290. end
  3291. end)
  3292. wait()
  3293. bv:Destroy()
  3294. wait(0.4)
  3295. dodgecool=false
  3296. end
  3297. elseif key=='w' and canExecuteMoves==true then
  3298. combostring=combostring..'w'
  3299. if combostring:match('ww') and dodgecool==false then
  3300. dodgecool=true
  3301. combostring=""
  3302. local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,-1))
  3303. --tor.CFrame=CFrame.new(tor.Position,Vector3.new(rv.X,tor.Position.Y,rv.Z))
  3304. local bv=int('BodyVelocity',tor)
  3305. dodgesound:Play()
  3306. bv.MaxForce=Vector3.new(math.huge,0,math.huge)
  3307. bv.Velocity=rv*150
  3308. spawn(function()
  3309. for i=1,16 do
  3310. wait()
  3311. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  3312. --cfx.Material='Neon'
  3313. local ran=math.random(2)
  3314. if ran==1 then
  3315. cfx.BrickColor=BrickColor.new('White')
  3316. cfx.Material='Neon'
  3317. end
  3318. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  3319. local b=blo(cfx)
  3320. addFx(cfx,0.05,'destroy',function()
  3321. cfx.Transparency=cfx.Transparency+0.05
  3322. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  3323. end)
  3324. end
  3325. end)
  3326. wait()
  3327. bv:Destroy()
  3328. wait(0.4)
  3329. dodgecool=false
  3330. end
  3331. elseif key=='s' and canExecuteMoves==true then
  3332. combostring=combostring..'s'
  3333. if combostring:match('ss') and dodgecool==false then
  3334. dodgecool=true
  3335. combostring=""
  3336. local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,1))
  3337. local bv=int('BodyVelocity',tor)
  3338. dodgesound:Play()
  3339. bv.MaxForce=Vector3.new(math.huge,0,math.huge)
  3340. bv.Velocity=rv*150
  3341. spawn(function()
  3342. for i=1,16 do
  3343. wait()
  3344. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  3345. --cfx.Material='Neon'
  3346. local ran=math.random(2)
  3347. if ran==1 then
  3348. cfx.BrickColor=BrickColor.new('White')
  3349. cfx.Material='Neon'
  3350. end
  3351. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  3352. local b=blo(cfx)
  3353. addFx(cfx,0.05,'destroy',function()
  3354. cfx.Transparency=cfx.Transparency+0.05
  3355. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  3356. end)
  3357. end
  3358. end)
  3359. wait()
  3360. bv:Destroy()
  3361. wait(.4)
  3362. dodgecool=false
  3363. end
  3364. elseif key=='a' and canExecuteMoves==true then
  3365. combostring=combostring..'a'
  3366. if combostring:match('aa') and dodgecool==false then
  3367. dodgecool=true
  3368. combostring=[[]]
  3369. local rv=cam.CFrame.rightVector
  3370. local bv=int('BodyVelocity',tor)
  3371. dodgesound:Play()
  3372. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  3373. bv.Velocity=rv*-150
  3374. spawn(function()
  3375. for i=1,16 do
  3376. wait()
  3377. local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
  3378. --cfx.Material='Neon'
  3379. local ran=math.random(2)
  3380. if ran==1 then
  3381. cfx.BrickColor=BrickColor.new('White')
  3382. cfx.Material='Neon'
  3383. end
  3384. cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
  3385. local b=blo(cfx)
  3386. addFx(cfx,0.05,'destroy',function()
  3387. cfx.Transparency=cfx.Transparency+0.05
  3388. b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
  3389. end)
  3390. end
  3391. end)
  3392. wait()
  3393. bv:Destroy()
  3394. wait(.4)
  3395. dodgecool=false
  3396. end
  3397. end
  3398. if key=='f' then
  3399. if deb==false then
  3400. executeMove('Normal Block')
  3401. end
  3402. elseif key=='z' then
  3403. if deb==false then
  3404. executeMove('Nightmare Overture')
  3405. end
  3406. elseif key=='e' then
  3407. if deb==false then
  3408. rcombostring=rcombostring..'e'
  3409. local cmb=rcombostring
  3410. if cmb:match('mb1mb1e') then
  3411. rcombostring=[[]]
  3412. local a=executeMove('Origin Beam')
  3413. if not a then
  3414. executeMove('Rive Beam')
  3415. end
  3416. else
  3417. executeMove('Rive Beam')
  3418. end
  3419. end
  3420. elseif key=='v' then
  3421. if deb==false then
  3422. executeMove('Diamond Storm')
  3423. end
  3424. elseif key=='t' then
  3425. if deb==false and not sprinting then
  3426. rcombostring=rcombostring..'t'
  3427. local cmb=rcombostring
  3428. if cmb:match('mb1mb1t') then
  3429. rcombostring=[[]]
  3430. local a=executeMove('Dark Lock')
  3431. if not a then
  3432. executeMove('Dark Spikes')
  3433. end
  3434. else
  3435. executeMove('Dark Spikes')
  3436. end
  3437. --end
  3438. -- executeMove('Dark Spikes')
  3439. end
  3440. elseif key=='g' then
  3441. if deb==false then
  3442. executeMove('Curse')
  3443. end
  3444. elseif key=='l' then
  3445. if deb==false then
  3446. executeMove('Ascend')
  3447. end
  3448. elseif key=='r' then
  3449. if deb==false and Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and currentkey~='32' then
  3450. -- if darknum==1 then
  3451. executeMove('Dark Slash')
  3452. --darknum=darknum+1
  3453. -- else
  3454. -- executeMove('Dark Slash2')
  3455. -- darknum=1
  3456. -- end
  3457. end
  3458. end
  3459. end)
  3460.  
  3461. mouse.KeyUp:connect(function(key)
  3462. for _,v in pairs(connectlist) do
  3463. if v.up==false and v.key==key then
  3464. v.up=true
  3465. table.remove(connectlist,_)
  3466. end
  3467. end
  3468. if string.byte(key)==48 and canExecuteMoves==true then
  3469. sprinting=false
  3470. hum.WalkSpeed=regws
  3471. end
  3472. end)
  3473.  
  3474. mouse.Button1Up:connect(function()
  3475. for _,v in pairs(connectlist) do
  3476. if v.up==false then
  3477. v.up=true
  3478. table.remove(connectlist,_)
  3479. end
  3480. end
  3481. end)
  3482.  
  3483. local oldsize=mana/maxmana
  3484. local oldchain=0
  3485. spawn(function()
  3486. while wait(1) do
  3487. if deb==false then
  3488. if chain==oldchain then
  3489. chain=0
  3490. end
  3491. oldchain=chain
  3492. end
  3493. end
  3494. end)
  3495.  
  3496. --darkustheory stuff
  3497.  
  3498. ArtificialHB = Instance.new("BindableEvent", script)
  3499. ArtificialHB.Name = "Heartbeat"
  3500.  
  3501. script:WaitForChild("Heartbeat")
  3502.  
  3503. frame = 1 / 60
  3504. tf = 0
  3505. allowframeloss = true
  3506. tossremainder = false
  3507. lastframe = tick()
  3508. script.Heartbeat:Fire()
  3509.  
  3510. game:GetService("RunService").Heartbeat:connect(function(s, p)
  3511. tf = tf + s
  3512. if tf >= frame then
  3513. if allowframeloss then
  3514. script.Heartbeat:Fire()
  3515. lastframe = tick()
  3516. else
  3517. for i = 1, math.floor(tf / frame) do
  3518. script.Heartbeat:Fire()
  3519. end
  3520. lastframe = tick()
  3521. end
  3522. if tossremainder then
  3523. tf = 0
  3524. else
  3525. tf = tf - frame * math.floor(tf / frame)
  3526. end
  3527. end
  3528. end)
  3529.  
  3530. function swait(num)
  3531. if num == 0 or num == nil then
  3532. ArtificialHB.Event:wait()
  3533. else
  3534. for i = 0, num do
  3535. ArtificialHB.Event:wait()
  3536. end
  3537. end
  3538. end
  3539.  
  3540. --darkustheory stuff
  3541.  
  3542. --game:service'RunService'.Heartbeat:connect(function()
  3543. Spawn(function()
  3544. while true do
  3545. swait()
  3546. chaintext.Text=tostring(chain) .. 'x'
  3547. manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
  3548. if mana/maxmana~=oldsize then
  3549. manabar:TweenSize(UDim2.new(mana/maxmana,0,1,0),'Out','Sine',1,true)
  3550. oldsize=mana/maxmana
  3551. end
  3552. if dumbbox then
  3553. dumbbox.CFrame=dumbhand.CFrame*cfn(0,0,4)*ang(mr(-90),0,0)
  3554. end
  3555. for _,v in pairs(textTable) do
  3556. if v.TextLabel.TextTransparency<1 then
  3557. v.TextLabel.TextTransparency=v.TextLabel.TextTransparency+0.02
  3558. v.TextLabel.TextStrokeTransparency=v.TextLabel.TextStrokeTransparency+0.02
  3559. v.StudsOffset=v.StudsOffset+Vector3.new(0,0.02,0)
  3560. else
  3561. v:Destroy()
  3562. table.remove(textTable,_)
  3563. end
  3564. end
  3565. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and jumping==false then
  3566. run=true
  3567. --if walksound.IsPlaying==false then
  3568. -- walksound:Play()
  3569. -- end
  3570. elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and jumping==false then
  3571. run=false
  3572. --walksound:Stop()
  3573. idle=true
  3574. end
  3575. --shift=48
  3576. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and canRunLeg==true then
  3577. runLeg=true
  3578. elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and canRunLeg==true then
  3579. runLeg=false
  3580. resetLegs()
  3581. end
  3582. for _,v in pairs(movers) do
  3583. if v.mover and v.mover:IsDescendantOf(tube) then
  3584. v.func()
  3585. else
  3586. table.remove(movers,_)
  3587. end
  3588. end
  3589. if bg then
  3590. if hum.Health > 0 then
  3591. tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
  3592. end
  3593. end
  3594. for _,v in pairs(fx) do
  3595. if v.stepval<1 then
  3596. v.func()
  3597. v.stepval=v.stepval+v.int
  3598. else
  3599. if v.final then
  3600. if v.final=='destroy' then
  3601. v.item:Destroy()
  3602. table.remove(fx,_)
  3603. -- print(#fx)
  3604. end
  3605. else
  3606. table.remove(fx,_)
  3607. end
  3608. end
  3609. end
  3610. for _,v in pairs(tweenTable) do
  3611. if v.Weld.C1==v.Stop then
  3612. table.remove(tweenTable,_)
  3613. else
  3614. if v.th<1-v.Step then
  3615. v.th=v.th+v.Step
  3616. i=v.th
  3617.  
  3618. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  3619. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  3620. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  3621. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  3622. (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
  3623. else
  3624. v.Weld.C1 = v.Stop
  3625. end
  3626. end
  3627. end
  3628. for _,v in pairs(altTweenTable) do
  3629. if v.Weld.C1==v.Stop then
  3630. table.remove(tweenTable,_)
  3631. else
  3632. if v.th<1-v.Step then
  3633. v.th=v.th+v.Step
  3634. i=v.th
  3635. v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  3636. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  3637. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  3638. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  3639. (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
  3640. else
  3641. v.Weld.C1 = v.Stop
  3642. end
  3643. end
  3644. end
  3645. end
  3646. end)
  3647. --end)
  3648.  
  3649. local oldcombo
  3650. local thingz=false
  3651. local oldcombo2
  3652. local thingz2=false
  3653.  
  3654. spawn(function()
  3655. while wait(0.1) do
  3656. for _,v in pairs(cooldowns) do
  3657. if v.timeleft<0.1 then
  3658. table.remove(cooldowns,_)
  3659. else
  3660. v.timeleft=v.timeleft-0.1
  3661. end
  3662. end
  3663. if thingz==false then
  3664. oldcombo=combostring
  3665. thingz=true
  3666. else
  3667. if string.len(oldcombo)==string.len(combostring) then
  3668. combostring=[[]]
  3669. oldcombo=[[]]
  3670. end
  3671. thingz=false
  3672. end
  3673. end
  3674. end)
  3675.  
  3676. spawn(function()
  3677. while wait(0.8) do
  3678. if thingz2==false then
  3679. oldcombo2=rcombostring
  3680. thingz2=true
  3681. else
  3682. if string.len(oldcombo2)==string.len(rcombostring) then
  3683. rcombostring=[[]]
  3684. oldcombo2=[[]]
  3685. end
  3686. thingz2=false
  3687. end
  3688. end
  3689. end)
  3690.  
  3691. spawn(function()
  3692. while wait(0.3) do
  3693. if run==false then
  3694. local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  3695. cfx.Transparency=1
  3696. local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
  3697. rfx.Material='Neon'
  3698. local ran=math.random(2)
  3699. if ran==1 then
  3700. rfx.BrickColor=BrickColor.new('White')
  3701. end
  3702. local bm=int('SpecialMesh',rfx)--blo(rfx)
  3703. bm.MeshType='FileMesh'
  3704. bm.MeshId=rbx..'9756362'
  3705. bm.Scale=Vector3.new(0.3,0.7,0.3)
  3706. local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
  3707. 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)
  3708. 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))
  3709. rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
  3710. game.Debris:AddItem(cfx,1.1)
  3711. game.Debris:AddItem(rfx,1.1)
  3712. end
  3713. end
  3714. end)
  3715.  
  3716. while wait() do
  3717. if mana<maxmana and not deb and not animPlaying then
  3718. mana=mana+2
  3719. if mana==maxmana+1 then
  3720. mana=maxmana
  3721. end
  3722. end
  3723. if animPlaying==true and runLeg==true then
  3724. walkLegs()
  3725. end
  3726. if run==true and animPlaying==false then
  3727. altTweenTable={}
  3728. tweenTable={}
  3729. if not sprinting then
  3730. if not ascension then
  3731. walkCycle()
  3732. else
  3733. walkCycleBig()
  3734. end
  3735. else
  3736. sprintCycle()
  3737. end
  3738. elseif idle==true and animPlaying==false and not jumping then
  3739. tweenTable={}
  3740. if not ascension then
  3741. reset()
  3742. else
  3743. bigreset()
  3744. end
  3745. end
  3746. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement