Advertisement
StrikerAndDai

Untitled

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