Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.43 KB | None | 0 0
  1. spawn (instance()
  2. --//Didn't put much time or effort into this so eh
  3. --//If you edit this then don't claim that you made it since all you did was edit parts of the pre-written script -_-
  4. --//Anyways now onto the keys since most ppl won't bother to just look for "KeyDown" lol.
  5. --//Yes I leaked this myself, don't worry though since this is the old version.
  6. --//Ugly code ahead, you've been warned.
  7. --[[
  8. ==============================================================================
  9. ====================================Keys======================================
  10. ==============================================================================
  11. |Q - Shadow Burst
  12. |E - Shadow Walker
  13. |R - Shadow Bullet
  14. |T - Oblivion Bombardment
  15. |Y - Makes summoned shades attack the target(must have atleast 1 shade active.)
  16. |F - Oblivion Shade(Summons a shade)
  17. |G - Return(Returns shades to you unless you're invisible)
  18. |H - Portal of Oblivion(Teleport basically)
  19. |J - Expel Shades(Removes them)
  20. |L - Entanglement
  21. |Z - Planes Of Oblivion
  22. |X - Oblivion is calling
  23. |[ - Ascend
  24. |] - Descend
  25. ==============================================================================
  26. --]]
  27. plr = game:GetService("Players").LocalPlayer
  28. char = plr.Character
  29. m = plr:GetMouse()
  30. human = char.Humanoid
  31. torso = char.Torso
  32. root = char.HumanoidRootPart
  33. lleg = char["Left Leg"]
  34. rleg = char["Right Leg"]
  35. larm = char["Left Arm"]
  36. rarm = char["Right Arm"]
  37. head = char.Head
  38. lshold = torso["Left Shoulder"]
  39. rshold = torso["Right Shoulder"]
  40. neck = torso.Neck
  41. lhip = torso["Left Hip"]
  42. rhip = torso["Right Hip"]
  43. lscf = lshold.C0
  44. rscf = rshold.C0
  45. ncf = neck.C0
  46. lhcf = lhip.C0
  47. rhcf = rhip.C0
  48. cloneMod = Instance.new('Model',workspace)
  49. cloneMod.Name = "Lord of the Shadows"
  50. char.Animate:Destroy()
  51. human.Animator:Destroy()
  52. pos = 0
  53. jumping = false
  54. rad = math.rad
  55. random = math.random
  56. sin = math.sin
  57. cos = math.cos
  58. floor = math.floor
  59. attacking = false
  60. up = false
  61. down = false
  62. invis = false
  63. entInvis = false
  64. fin = false
  65. --target = nil
  66. pTarg = nil
  67. shadAtck = false
  68. shadows = {}
  69. entang = false
  70. head.face:Destroy()
  71. function smoothPart(part)
  72. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  73. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  74. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  75. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  76. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  77. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  78. end
  79. function chat(msg,col)
  80. local part = Instance.new('Part',workspace)
  81. local bg = Instance.new('BillboardGui',part)
  82. local tl = Instance.new('TextLabel',bg)
  83. bg.Size = UDim2.new(10,0,2,0)
  84. part.Transparency = 1
  85. part.CanCollide = false
  86. part.Anchored = true
  87. part.CFrame = head.CFrame * CFrame.new(0,2,0)
  88. tl.Size = UDim2.new(1,0,1,0)
  89. tl.Text = msg
  90. tl.BackgroundTransparency = 1
  91. tl.TextColor3 = col
  92. tl.TextStrokeColor3 = Color3.fromRGB(255,255,255)
  93. tl.TextStrokeTransparency = 0
  94. tl.TextScaled = true
  95. tl.Font = Enum.Font.Fantasy
  96. game:GetService("Debris"):AddItem(part,2)
  97. end
  98. local function repParent(inst)
  99. local par = inst.Parent
  100. local lastPar = inst
  101. repeat
  102. lastPar = par
  103. par = par.Parent
  104. wait()
  105. until par == workspace
  106. return lastPar
  107. end
  108. for _,v in pairs(char:GetChildren()) do
  109. if v:IsA('Accessory') or v:IsA('Hat') or v:IsA('Shirt') or v:IsA('Pants') then
  110. v:Destroy()
  111. elseif v:IsA('Part') then
  112. v.BrickColor = BrickColor.Black()
  113. end
  114. end
  115. shadowPool = Instance.new('Part',char)
  116. shadowPool.Shape = "Cylinder"
  117. shadowPool.Size = Vector3.new(0.2,20,20)
  118. shadowPool.CFrame = torso.CFrame * CFrame.new(0,-3,0)
  119. torso.Anchored = true
  120. torso.CFrame = shadowPool.CFrame * CFrame.new(0,-5,0)
  121. shadowPool.CFrame = shadowPool.CFrame * CFrame.Angles(rad(0),rad(0),rad(90))
  122. shadowPool.Anchored = true
  123. shadowPool.CanCollide = false
  124. shadowPool.BrickColor = BrickColor.new("Really black")
  125. shadowPool.Material = "Neon"
  126. wait(1)
  127. neck.C0 = neck.C0 * CFrame.Angles(rad(20),rad(0),rad(0))
  128. for i=0,0.4,0.01 do
  129. --neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(rad(0),rad(0),rad(20)),i)
  130. torso.CFrame = torso.CFrame:lerp(shadowPool.CFrame * CFrame.new(5,0,0) * CFrame.Angles(rad(0),rad(0),-rad(90)),i)
  131. wait()
  132. end
  133. Roar = Instance.new('Sound',char)
  134. Roar.Volume = 2
  135. Roar.EmitterSize = 200
  136. Roar.SoundId = "rbxassetid://562096943"
  137. Roar:Play()
  138. for i=0,1,0.1 do
  139. lshold.C0 = lshold.C0:lerp(CFrame.new(-1,0.3,0)*CFrame.Angles(rad(0),-rad(20),-rad(90)),i)
  140. rshold.C0 = rshold.C0:lerp(CFrame.new(1,0.3,0)*CFrame.Angles(rad(0),rad(20),rad(90)),i)
  141. neck.C0 = neck.C0:lerp(neck.C0*CFrame.Angles(-rad(8),rad(0),rad(0)),i)
  142. wait()
  143. end
  144. wait(2.2)
  145. for i=0,1,0.1 do
  146. lshold.C0 = lshold.C0:lerp(lscf,i)
  147. rshold.C0 = rshold.C0:lerp(rscf,i)
  148. neck.C0 = neck.C0:lerp(ncf,i)
  149. shadowPool.Size = shadowPool.Size:lerp(Vector3.new(.2,.2,.2),i)
  150. wait()
  151. end
  152. shadowPool:Destroy()
  153. Roar:Destroy()
  154. float = Instance.new('BodyPosition',root)
  155. float.MaxForce = Vector3.new(0,math.huge,0)
  156. float.Position = torso.CFrame.p
  157. torso.Anchored = false
  158. for _,v in pairs(char:GetChildren()) do
  159. if v:IsA('BasePart') then
  160. v.Transparency = 1
  161. end
  162. end
  163. char.Parent = workspace.CurrentCamera
  164. fin = true
  165. m.KeyDown:connect(function(key)
  166. if not attacking then
  167. if key == "q" then
  168. attacking = true
  169. local bx = Instance.new('Part',workspace)
  170. local done = false
  171. bx.Name = "ncl"
  172. bx.Shape = "Ball"
  173. bx.Material = "Neon"
  174. bx.BrickColor = BrickColor.Black()
  175. bx.Anchored = true
  176. bx.Size = Vector3.new(.2,.2,.2)
  177. bx.CanCollide = false
  178. bx.Transparency = 0.5
  179. bx.CFrame = torso.CFrame
  180. chat("Shadow Outburst!",Color3.fromRGB(0,0,0))
  181. coroutine.resume(coroutine.create(function()
  182. wait(2)
  183. done = true
  184. end))
  185. coroutine.resume(coroutine.create(function()
  186. repeat
  187. for _,v in pairs(workspace:GetChildren()) do
  188. if v:FindFirstChildOfClass("Humanoid") then
  189. local hum = v:FindFirstChildOfClass("Humanoid")
  190. local tor = v:FindFirstChild("Torso")
  191. local hroot = v:FindFirstChild("HumanoidRootPart")
  192. if tor then
  193. if (tor.Position-torso.Position).magnitude <= 20 then
  194. for _,b in pairs(v:GetChildren()) do
  195. if b:IsA('ForceField') then
  196. b:Destroy()
  197. elseif b:IsA('Humanoid') then
  198. if b.MaxHealth > 200 then
  199. b.MaxHealth = 200
  200. end
  201. end
  202. end
  203. hum:TakeDamage(5)
  204. end
  205. elseif hroot then
  206. if (hroot.Position-torso.Position).magnitude <= 20 then
  207. for _,b in pairs(v:GetChildren()) do
  208. if b:IsA('ForceField') then
  209. b:Destroy()
  210. elseif b:IsA('Humanoid') then
  211. if b.MaxHealth > 200 then
  212. b.MaxHealth = 200
  213. end
  214. end
  215. end
  216. hum:TakeDamage(5)
  217. end
  218. end
  219. end
  220. end
  221. wait()
  222. until done
  223. bx:Destroy()
  224. end))
  225. for i=0,1,0.1 do
  226. lshold.C0 = lshold.C0:lerp(CFrame.new(-1,0.5,-0.5)*CFrame.Angles(rad(0),rad(0),-rad(90)),i)
  227. rshold.C0 = rshold.C0:lerp(CFrame.new(1,0.5,-0.5)*CFrame.Angles(rad(0),rad(0),rad(90)),i)
  228. if workspace:FindFirstChild("ncl") then
  229. bx.Size = bx.Size:lerp(Vector3.new(20,20,20),i)
  230. end
  231. wait()
  232. end
  233. wait(.5)
  234. attacking = false
  235. elseif key == "e" then
  236. local p1 = Instance.new('Part',workspace)
  237. p1.Size = Vector3.new(10,10,10)
  238. p1.Anchored = true
  239. p1.CanCollide = false
  240. p1.BrickColor = BrickColor.new("Really black")
  241. p1.Material = "Neon"
  242. p1.CFrame = torso.CFrame
  243. local p2 = p1:Clone()
  244. p2.Parent = workspace
  245. invis = not invis
  246. if not invis then
  247. chat("Shadow Walker deactivate!",Color3.fromRGB(45,45,45))
  248. if entang then
  249. entInvis = false
  250. for _,v in pairs(char:GetChildren()) do
  251. if v:IsA('BasePart') and v.Name ~= "HumanoidRootPart" then
  252. v.Transparency = 0
  253. end
  254. end
  255. end
  256. else
  257. chat("Shadow Walker activate!",Color3.fromRGB(45,45,45))
  258. if entang then
  259. entInvis = true
  260. for _,v in pairs(char:GetChildren()) do
  261. if v:IsA('BasePart') and v.Name ~= "HumanoidRootPart" then
  262. v.Transparency = 1
  263. end
  264. end
  265. end
  266. end
  267. for i=0,1,0.1 do
  268. pcall(function()
  269. p1.CFrame = p1.CFrame:lerp(torso.CFrame*CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360))),i)
  270. p2.CFrame = p1.CFrame:lerp(torso.CFrame*CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360))),i)
  271. p1.Transparency = i
  272. p2.Transparency = i
  273. end)
  274. wait()
  275. end
  276. p1:Destroy()
  277. p2:Destroy()
  278. elseif key == "r" then
  279. local target = nil
  280. local s = pcall(function()
  281. local trg = repParent(m.Target)
  282. if trg:FindFirstChildOfClass("Humanoid") and trg:FindFirstChild("Head") and trg:FindFirstChild("Torso") then
  283. target = trg
  284. end
  285. end)
  286. if s and target ~= nil then
  287. attacking = true
  288. local throw = false
  289. local done = false
  290. coroutine.resume(coroutine.create(function()
  291. local part = Instance.new('Part',char)
  292. local vel = Instance.new('BodyVelocity',part)
  293. game:GetService("Debris"):AddItem(part,5)
  294. part.Size = Vector3.new(1,1,1)
  295. --part.Transparency = 1
  296. part.BrickColor = BrickColor.Black()
  297. part.Anchored = true
  298. smoothPart(part)
  299. part.CanCollide = false
  300. part.CFrame = rarm.CFrame * CFrame.new(0,0,-2)
  301. repeat
  302. part.CFrame = rarm.CFrame * CFrame.new(0,0,-2)
  303. part.CFrame = part.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  304. wait()
  305. until throw
  306. part:BreakJoints()
  307. vel.MaxForce = Vector3.new(9999,9999,9999)
  308. part.Anchored = false
  309. coroutine.resume(coroutine.create(function()
  310. local dying = false
  311. repeat
  312. if (target.Head.Position-part.Position).magnitude <= 10 then
  313. done = true
  314. part:Destroy()
  315. for _,v in pairs(target:GetChildren()) do
  316. if v:IsA('Part') then
  317. v.BrickColor = BrickColor.Black()
  318. end
  319. end
  320. pcall(function()
  321. target.Torso.Anchored = true
  322. target.Torso.CFrame = target.Torso.CFrame * CFrame.new(0,5,0)
  323. local tls = target.Torso["Left Shoulder"]
  324. local trs = target.Torso["Right Shoulder"]
  325. local tlh = target.Torso["Left Hip"]
  326. local trh = target.Torso["Right Hip"]
  327. local tlh = target.Torso["Left Hip"]
  328. local tn = target.Torso["Neck"]
  329. for i=0,1,0.1 do
  330. tls.C0 = tls.C0:lerp(tls.C0*CFrame.Angles(rad(random(-36,36)),rad(random(-36,36)),rad(random(-36,36)))*CFrame.new(0,0,5),i)
  331. trs.C0 = trs.C0:lerp(trs.C0*CFrame.Angles(rad(random(-36,36)),rad(random(-36,36)),rad(random(-36,36)))*CFrame.new(0,0,5),i)
  332. trh.C0 = trh.C0:lerp(trh.C0*CFrame.Angles(rad(random(-36,36)),rad(random(-36,36)),rad(random(-36,36)))*CFrame.new(5,0,0),i)
  333. tlh.C0 = tlh.C0:lerp(tlh.C0*CFrame.Angles(rad(random(-36,36)),rad(random(-36,36)),rad(random(-36,36)))*CFrame.new(-5,0,0),i)
  334. tn.C0 = tn.C0:lerp(tn.C0*CFrame.Angles(rad(random(-36,36)),rad(random(-36,36)),rad(random(-36,36)))*CFrame.new(0,10,0),i)
  335. wait()
  336. end
  337. target:BreakJoints()
  338. target = nil
  339. if attacking then
  340. attacking = false
  341. end
  342. end)
  343. dying = true
  344. end
  345. wait()
  346. until dying
  347. end))
  348. repeat
  349. part.CFrame = CFrame.new(part.Position,target.Head.Position)
  350. vel.Velocity = part.CFrame.lookVector * 100
  351. wait()
  352. until done
  353. end))
  354. for i=0,1,0.1 do
  355. rshold.C0 = rshold.C0:lerp(CFrame.new(1,1,-0.5)*CFrame.Angles(rad(0),rad(0),rad(150)),i)
  356. wait()
  357. end
  358. chat("Shadow Bullet!",Color3.fromRGB(50,50,50))
  359. throw = true
  360. attacking = false
  361. end
  362. elseif key == "t" then
  363. local pTarg = nil
  364. local s = pcall(function()
  365. if m.Target ~= nil then
  366. local trg = repParent(m.Target)
  367. if trg:FindFirstChildOfClass("Humanoid") and trg:FindFirstChild("Head") then
  368. pTarg = trg
  369. end
  370. end
  371. end)
  372. if s and pTarg ~= nil then
  373. local portal = Instance.new('Part',workspace)
  374. local orig = Instance.new('Part',workspace)
  375. local dead = false
  376. orig.Anchored = true
  377. orig.CanCollide = false
  378. orig.Transparency = 1
  379. portal.Shape = "Cylinder"
  380. portal.Anchored = true
  381. portal.CanCollide = false
  382. smoothPart(portal)
  383. portal.BrickColor = BrickColor.Black()
  384. portal.Size = Vector3.new(0.2,10,10)
  385. portal.CFrame = pTarg.Head.CFrame * CFrame.new(0,10,-10)
  386. coroutine.resume(coroutine.create(function()
  387. wait(2)
  388. dead = true
  389. portal:Destroy()
  390. end))
  391. coroutine.resume(coroutine.create(function()
  392. local function fireRand()
  393. local chance = floor(random(1,3))
  394. --if chance <= 2 then
  395. local proj = Instance.new('Part',workspace)
  396. local vel = Instance.new('BodyVelocity',proj)
  397. local expl = false
  398. smoothPart(proj)
  399. proj.BrickColor = BrickColor.Black()
  400. proj.Size = Vector3.new(1,1,1)
  401. proj.CanCollide = false
  402. proj.CFrame = portal.CFrame * CFrame.new(2,0,0)
  403. --proj.Anchored=true
  404. vel.MaxForce = Vector3.new(9999,9999,9999)
  405. vel.Velocity = orig.CFrame.lookVector * 50
  406. game:GetService("Debris"):AddItem(proj,2)
  407. proj.Touched:connect(function(h)
  408. if h ~= portal and h ~= orig and not expl then
  409. proj.Anchored = true
  410. expl = true
  411. local p1 = Instance.new('Part',workspace)
  412. local m1 = Instance.new('SpecialMesh',p1)
  413. p1.Anchored = true
  414. p1.CanCollide = false
  415. p1.BrickColor = BrickColor.Black()
  416. p1.CFrame = proj.CFrame
  417. proj:Destroy()
  418. m1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  419. for _,v in pairs(workspace:GetChildren()) do
  420. if v:FindFirstChild("Head") then
  421. if (v.Head.Position-p1.Position).magnitude <= 20 and v:FindFirstChildOfClass("Humanoid") then
  422. for _,b in pairs(v:GetChildren()) do
  423. if b:IsA('Humanoid') then
  424. if b.MaxHealth > 200 then
  425. b.MaxHealth = 200
  426. end
  427. elseif b:IsA('ForceField') then
  428. b:Destroy()
  429. end
  430. end
  431. v:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  432. end
  433. end
  434. end
  435. for i=0,1,0.1 do
  436. p1.CFrame = p1.CFrame:lerp(p1.CFrame*CFrame.Angles(0,rad(5),0),i)
  437. m1.Scale = m1.Scale:lerp(Vector3.new(4,4,4),i)
  438. p1.Transparency = i
  439. wait()
  440. end
  441. p1:Destroy()
  442. end
  443. end)
  444. --else
  445.  
  446. --end
  447. end
  448. repeat
  449. orig.CFrame = CFrame.new(portal.Position,pTarg.Head.Position)
  450. portal.CFrame = CFrame.new(portal.Position,pTarg.Head.Position) * CFrame.Angles(0,rad(90),0)
  451. fireRand()
  452. wait(.5)
  453. until dead
  454. end))
  455. chat("Oblivion Bombardment!",Color3.fromRGB(45,45,45))
  456. end
  457. elseif key == "f" then
  458. if #shadows < 2 then
  459. attacking = true
  460. chat("Oblivion Shade!",Color3.fromRGB(0,0,0))
  461. local shadow = Instance.new('Model',workspace)
  462. shadow.Name = "Shadow Minion"
  463. for _,v in pairs(char:GetChildren()) do
  464. if v:IsA('BasePart') and v.Name ~= "Torso" and v.Name ~= "Left Leg" and v.Name ~= "Right Leg" then
  465. local c = v:Clone()
  466. c.Parent = shadow
  467. if v.Name == "HumanoidRootPart" then
  468. c.Name = "Tor"
  469. shadow.PrimaryPart = c
  470. else
  471. c.Name = "Part"
  472. end
  473. c.Anchored = true
  474. c.CanCollide = false
  475. c:BreakJoints()
  476. smoothPart(c)
  477. c.Transparency = 0.4
  478. c.BrickColor = BrickColor.new("Really black")
  479. c.Material = "Neon"
  480. end
  481. end
  482. shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.new(0,0,-10))
  483. table.insert(shadows,#shadows+1,{Shadow=shadow,Alive=true})
  484. coroutine.resume(coroutine.create(function()
  485. for i,v in pairs(shadows) do
  486. if v.Shadow == shadow then
  487. spawn(function()
  488. while wait() do
  489. if not workspace:FindFirstChild("Shadow Minion") then
  490. v.Alive = false
  491. shadows = {}
  492. end
  493. end
  494. end)
  495. while v.Alive do
  496. wait()
  497. local p1 = Instance.new('Part',workspace)
  498. p1.Size = Vector3.new(2,2,2)
  499. smoothPart(p1)
  500. p1.CFrame = shadow.Tor.CFrame * CFrame.new(0,-1,0)
  501. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  502. p1.Anchored = true
  503. p1.CanCollide = false
  504. p1.Transparency = 0.3
  505. p1.Material = "Neon"
  506. p1.BrickColor = BrickColor.new("Really black")
  507. game:GetService("Debris"):AddItem(p1,0.05)
  508. end
  509. end
  510. end
  511. end))
  512. attacking = false
  513. end
  514. elseif key == "y" then
  515. local targ = nil
  516. local s = pcall(function()
  517. local trg = repParent(m.Target)
  518. if trg:FindFirstChildOfClass("Humanoid") and trg:FindFirstChild("Head") then
  519. targ = trg
  520. end
  521. end)
  522. if targ ~= nil and s then
  523. if #shadows <= 2 and not shadAtck then
  524. shadAtck = true
  525. for i,v in pairs(shadows) do
  526. print(i)
  527. local moving = true
  528. local atck = false
  529. spawn(function()
  530. while wait(.5) do
  531. if atck and shadAtck then
  532. local prt = Instance.new('Part',v.Shadow)
  533. prt.Anchored = true
  534. prt.CanCollide = false
  535. prt.BrickColor = BrickColor.Black()
  536. smoothPart(prt)
  537. prt.Shape = "Ball"
  538. prt.Size = Vector3.new(4,4,4)
  539. prt.CFrame = v.Shadow.PrimaryPart.CFrame
  540. for i=0,1,0.1 do
  541. local orig = prt.CFrame
  542. prt.Size = prt.Size:lerp(Vector3.new(8,8,8),i)
  543. prt.Transparency = i
  544. prt.CFrame = orig
  545. wait()
  546. end
  547. prt:Destroy()
  548. if targ:FindFirstChildOfClass("Humanoid") then
  549. for _,b in pairs(targ:GetChildren()) do
  550. if b:IsA('ForceField') then
  551. b:Destroy()
  552. --[[elseif b:IsA('Humanoid') then
  553. if b.MaxHealth > 200 then
  554. b.MaxHealth = 200
  555. end
  556. end]]
  557. end
  558. end
  559. targ:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  560. end
  561. end
  562. --wait(.5)
  563. end
  564. end)
  565. spawn(function()
  566. while shadAtck do
  567. wait()
  568. if targ:FindFirstChildOfClass("Humanoid")then
  569. if targ:FindFirstChildOfClass("Humanoid").Health > 0 then
  570. if i == 1 then
  571. v.Shadow:SetPrimaryPartCFrame(v.Shadow.PrimaryPart.CFrame:lerp(targ.Head.CFrame * CFrame.new(0,0,-10),0.5))
  572. else
  573. v.Shadow:SetPrimaryPartCFrame(v.Shadow.PrimaryPart.CFrame:lerp(targ.Head.CFrame * CFrame.new(0,0,10),0.5))
  574. end
  575. v.Shadow:SetPrimaryPartCFrame(CFrame.new(v.Shadow.PrimaryPart.Position,targ.Head.Position))
  576. --print(tostring((targ.Head.Position-v.Shadow.PrimaryPart.Position).magnitude))
  577. if (targ.Head.Position-v.Shadow.PrimaryPart.Position).magnitude <= 10 then
  578. atck = true
  579. else
  580. atck = false
  581. end
  582. else
  583. shadAtck = false
  584. end
  585. else
  586. shadAtck = false
  587. end
  588. end
  589. end)
  590. end
  591. end
  592. end
  593. elseif key == "h" then
  594. attacking = true
  595. torso.Anchored = true
  596. local tprt = Instance.new('Part',workspace)
  597. float:Destroy()
  598. tprt.Anchored = true
  599. tprt.BrickColor = BrickColor.new("Really black")
  600. tprt.Material = "Neon"
  601. tprt.CanCollide = false
  602. tprt.Shape = "Cylinder"
  603. tprt.Size = Vector3.new(0.2,5,5)
  604. tprt.Position = m.Hit.p
  605. torso.CFrame = tprt.CFrame * CFrame.new(0,-5,0)
  606. tprt.CFrame = tprt.CFrame * CFrame.Angles(rad(0),rad(0),rad(90))
  607. for i=0,0.4,0.01 do
  608. --neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(rad(0),rad(0),rad(20)),i)
  609. torso.CFrame = torso.CFrame:lerp(tprt.CFrame * CFrame.new(5,0,0) * CFrame.Angles(rad(0),rad(0),-rad(90)),i)
  610. wait()
  611. end
  612. torso.Anchored = false
  613. float = Instance.new('BodyPosition',root)
  614. float.MaxForce = Vector3.new(0,math.huge,0)
  615. float.Position = torso.Position + Vector3.new(0,pos,0)
  616. tprt:Destroy()
  617. attacking = false
  618. elseif key == "g" then
  619. if shadAtck then
  620. chat("Return!",Color3.fromRGB(50,50,50))
  621. shadAtck = false
  622. end
  623. elseif key == "[" then
  624. down = false
  625. up = true
  626. elseif key == "]" then
  627. down = true
  628. up = false
  629. elseif key == "j" then
  630. chat("Expel Shades!",Color3.fromRGB(50,50,50))
  631. if #shadows <= 2 then
  632. for i,v in pairs(shadows) do
  633. v.Alive = false
  634. local dying = false
  635. coroutine.resume(coroutine.create(function()
  636. wait(.5)
  637. dying = true
  638. wait(.1)
  639. v.Shadow:Destroy()
  640. end))
  641. coroutine.resume(coroutine.create(function()
  642. for _,v in pairs(v.Shadow:GetChildren()) do
  643. if v:IsA('BasePart') then
  644. v.Transparency = 1
  645. end
  646. end
  647. while not dying do
  648. wait()
  649. local p1 = Instance.new('Part',workspace)
  650. p1.Size = Vector3.new(4,4,4)
  651. smoothPart(p1)
  652. p1.CFrame = v.Shadow.PrimaryPart.CFrame
  653. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  654. p1.Anchored = true
  655. p1.CanCollide = false
  656. p1.Transparency = 0.3
  657. p1.Material = "Neon"
  658. p1.BrickColor = BrickColor.Black()
  659. game:GetService("Debris"):AddItem(p1,0.05)
  660. end
  661. end))
  662. end
  663. end
  664. elseif key == "z" then
  665. attacking = true
  666. local d = false
  667. chat("Planes of Oblivion!",Color3.fromRGB(0,0,0))
  668. local port = Instance.new('Part',workspace)
  669. port.Shape = "Ball"
  670. port.Size = Vector3.new(.2,.2,.2)
  671. port.Anchored = true
  672. port.CanCollide = false
  673. port.CFrame = head.CFrame * CFrame.new(0,10,0)
  674. port.BrickColor = BrickColor.new("Really black")
  675. port.Material = "Neon"
  676. smoothPart(port)
  677. for i=0,1,0.1 do
  678. port.Size = port.Size:lerp(Vector3.new(10,10,10),i)
  679. wait()
  680. end
  681. attacking = false
  682. coroutine.resume(coroutine.create(function()
  683. wait(5)
  684. d = true
  685. wait(.1)
  686. for i=0,1,0.1 do
  687. port.Size = port.Size:lerp(Vector3.new(.2,.2,.2),i)
  688. wait()
  689. end
  690. port:Destroy()
  691. end))
  692. spawn(function()
  693. repeat
  694. for _,v in pairs(workspace:GetChildren()) do
  695. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChild("Head") and v.Name ~= "Lord of the Shadows" then
  696. local expl = false
  697. local hum = v:FindFirstChildOfClass("Humanoid")
  698. local targHead = v:FindFirstChild("Head")
  699. local proj = Instance.new('Part',workspace)
  700. local vel = Instance.new('BodyVelocity',proj)
  701. smoothPart(proj)
  702. proj.Size = Vector3.new(1,1,1)
  703. proj.BrickColor = BrickColor.Black()
  704. proj.Material = "Neon"
  705. proj.CanCollide = false
  706. proj.Name = "Oblivion Bullet"
  707. proj.CFrame = port.CFrame-- * CFrame.new(0,-10,0)
  708. vel.MaxForce = Vector3.new(9999,9999,9999)
  709. game:GetService("Debris"):AddItem(proj,5)
  710. proj.Touched:connect(function(h)
  711. if h~=port and h.Name ~= proj.Name and h.Parent.Name ~= "Lord of the Shadows" then
  712. proj.Anchored = true
  713. expl = true
  714. local p1 = Instance.new('Part',workspace)
  715. local m1 = Instance.new('SpecialMesh',p1)
  716. p1.Anchored = true
  717. p1.CanCollide = false
  718. p1.CFrame = proj.CFrame
  719. m1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  720. proj:Destroy()
  721. if hum.MaxHealth > 200 then
  722. hum.MaxHealth = 200
  723. end
  724. for _,b in pairs(v:GetChildren()) do
  725. if b:IsA('ForceField') then
  726. b:Destroy()
  727. end
  728. end
  729. hum:TakeDamage(10)
  730. for i=0,1,0.1 do
  731. m1.Scale = m1.Scale:lerp(Vector3.new(4,4,4),i)
  732. p1.Transparency = i
  733. wait()
  734. end
  735. p1:Destroy()
  736. if hum.Health < 1 then
  737. coroutine.resume(coroutine.create(function()
  738. for _,b in pairs(v:GetChildren()) do
  739. if b:IsA('BasePart') then
  740. b.BrickColor = BrickColor.Black()
  741. spawn(function()
  742. pcall(function()
  743. for i=0,1,0.1 do
  744. b.Transparency = i
  745. wait()
  746. end
  747. b:Destroy()
  748. end)
  749. end)
  750. end
  751. end
  752. end))
  753. end
  754. end
  755. end)
  756. spawn(function()
  757. repeat
  758. proj.CFrame = CFrame.new(proj.Position,targHead.Position)
  759. vel.Velocity = proj.CFrame.lookVector * 100
  760. wait()
  761. until expl
  762. end)
  763. end
  764. end
  765. wait(.5)
  766. until d
  767. end)
  768. elseif key == "x" then
  769. local ptrg = nil
  770. local s = pcall(function()
  771. local trg = repParent(m.Target)
  772. if trg:FindFirstChildOfClass("Humanoid") then
  773. ptrg = trg
  774. end
  775. end)
  776. if s and ptrg ~= nil then
  777. human:ChangeState(11)
  778. attacking = true
  779. for _,v in pairs(ptrg:GetChildren()) do
  780. if v:IsA('BasePart') then
  781. v.Anchored = true
  782. end
  783. end
  784. if ptrg:FindFirstChild("Torso") then
  785. torso.CFrame = ptrg:FindFirstChild("Torso").CFrame * CFrame.new(0,0,2)
  786. elseif ptrg:FindFirstChild("HumanoidRootPart") then
  787. torso.CFrame = ptrg:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,2)
  788. end
  789. chat("The oblivion planes are calling...",Color3.fromRGB(50,50,50))
  790. local part = Instance.new('Part',workspace)
  791. part.Shape = "Ball"
  792. part.Size = Vector3.new(10,10,10)
  793. part.Anchored = true
  794. part.CanCollide = false
  795. part.BrickColor = BrickColor.new("Really black")
  796. part.Material = "Neon"
  797. smoothPart(part)
  798. part.CFrame = torso.CFrame
  799. for _,v in pairs(ptrg:GetChildren()) do
  800. if v:IsA('BasePart') then
  801. v.Anchored = true
  802. v.Transparency = 1
  803. if v.Name == "Head" and v:FindFirstChild("face") then
  804. v.face:Destroy()
  805. elseif v.Name == "Head" and v:FindFirstChild("Face") then
  806. v.Face:Destroy()
  807. end
  808. end
  809. end
  810. for i=0,1,0.1 do
  811. part.Size = part.Size:lerp(Vector3.new(.2,.2,.2),i)
  812. for _,v in pairs(ptrg:GetChildren()) do
  813. if v:IsA('BasePart') then
  814. v.CFrame = v.CFrame:lerp(part.CFrame,i)
  815. end
  816. end
  817. part.Transparency = i
  818. wait()
  819. end
  820. part:Destroy()
  821. ptrg:BreakJoints()
  822. attacking = false
  823. end
  824. end
  825. end
  826. if key == "[" then
  827. down = false
  828. up = true
  829. elseif key == "]" then
  830. down = true
  831. up = false
  832. end
  833. end)
  834. m.KeyUp:connect(function(key)
  835. if key == "]" then
  836. down = false
  837. elseif key == "[" then
  838. up = false
  839. end
  840. end)
  841. spawn(function()
  842. while wait() do
  843. if down then
  844. if float.Position ~= Vector3.new(0,2,0) then
  845. float.Position = float.Position - Vector3.new(0,1,0)
  846. end
  847. end
  848. if up then
  849. float.Position = float.Position + Vector3.new(0,1,0)
  850. end
  851. end
  852. end)
  853. spawn(function()
  854. local angle = 1
  855. while game:GetService("RunService").RenderStepped:wait() do
  856. if not shadAtck and #shadows <= 2 then
  857. if not invis then
  858. for i,v in pairs(shadows) do
  859. if v.Alive then
  860. angle = angle + 1
  861. if i == 1 then
  862. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15))
  863. --v.Shadow.PrimaryPart.CFrame:lerp(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15),0.1)
  864. else
  865. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,15))
  866. end
  867. v.Shadow:SetPrimaryPartCFrame(CFrame.new(v.Shadow.PrimaryPart.Position,torso.Position)*CFrame.Angles(0,rad(180),0))
  868. end
  869. end
  870. elseif entang then
  871. for i,v in pairs(shadows) do
  872. if v.Alive then
  873. angle = angle + 1
  874. if i == 1 then
  875. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15))
  876. --v.Shadow.PrimaryPart.CFrame:lerp(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15),0.1)
  877. else
  878. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,15))
  879. end
  880. v.Shadow:SetPrimaryPartCFrame(CFrame.new(v.Shadow.PrimaryPart.Position,torso.Position)*CFrame.Angles(0,rad(180),0))
  881. end
  882. end
  883. end
  884. end
  885. end
  886. end)
  887. game:GetService("RunService").RenderStepped:connect(function()
  888. if fin then
  889. if plr.Character ~= char then
  890. plr.Character = char
  891. end
  892. pcall(function()
  893. if not workspace:FindFirstChild("Lord of the Shadows") then
  894. cloneMod = Instance.new('Model',workspace)
  895. cloneMod.Name = "Lord of the Shadows"
  896. end
  897. if not invis and not entang then
  898. for _,v in pairs(char:GetChildren()) do
  899. if v:IsA('Part') and v.Name ~= "Torso" then
  900. if v.Name == "ncl" then
  901. local c = v:Clone()
  902. c.Parent = cloneMod
  903. c.Name = "Part"
  904. c.Anchored = true
  905. c.CanCollide = false
  906. c:BreakJoints()
  907. c.BrickColor = BrickColor.Black()
  908. c.Transparency = 0.5
  909. smoothPart(c)
  910. game:GetService("Debris"):AddItem(c,0.05)
  911. else
  912. local c = v:Clone()
  913. c.Parent = cloneMod
  914. c.Name = "Part"
  915. c.Anchored = true
  916. c.CanCollide = false
  917. c:BreakJoints()
  918. c.BrickColor = BrickColor.Black()
  919. c.Transparency = 0.3
  920. smoothPart(c)
  921. game:GetService("Debris"):AddItem(c,0.05)
  922. end
  923. end
  924. end
  925. end
  926. end)
  927. human.Health = human.MaxHealth
  928. if not attacking then
  929. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  930. lshold.C0 = lshold.C0:lerp(CFrame.new(-1,0.5,-1.3)*CFrame.Angles(rad(0),rad(0),rad(70)),0.4)
  931. rshold.C0 = rshold.C0:lerp(CFrame.new(1,0.5,-1.3)*CFrame.Angles(rad(0),rad(0),-rad(70)),0.4)
  932. lhip.C0 = lhip.C0:lerp(CFrame.new(-0.5,-1,0.5),0.4)
  933. rhip.C0 = rhip.C0:lerp(CFrame.new(0.5,-1,0.5),0.4)
  934. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  935. rhip.C0 = rhip.C0:lerp(CFrame.new(0.5,-0.8,0.5)*CFrame.Angles(-rad(25),rad(0),rad(5)),0.4)
  936. lhip.C0 = lhip.C0:lerp(CFrame.new(-0.5,-0.8,0.5)*CFrame.Angles(-rad(25),rad(0),-rad(5)),0.4)
  937. end
  938. end
  939. end
  940. end)
  941. spawn(function()
  942. while fin do
  943. wait()
  944. if not invis then
  945. local p1 = Instance.new('Part',workspace)
  946. p1.Size = Vector3.new(2,2,2)
  947. smoothPart(p1)
  948. p1.CFrame = lleg.CFrame * CFrame.new(0,0,0.5)
  949. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  950. p1.Anchored = true
  951. p1.CanCollide = false
  952. p1.Transparency = 0.3
  953. p1.Material = "Neon"
  954. p1.BrickColor = BrickColor.Black()
  955. local p2 = p1:Clone()
  956. p2.CFrame = rleg.CFrame * CFrame.new(0,0,0.5)
  957. p2.CFrame = p2.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  958. game:GetService("Debris"):AddItem(p1,0.05)
  959. game:GetService("Debris"):AddItem(p2,0.05)
  960. elseif entang and not entInvis then
  961. local p1 = Instance.new('Part',workspace)
  962. p1.Size = Vector3.new(2,2,2)
  963. smoothPart(p1)
  964. p1.CFrame = lleg.CFrame * CFrame.new(0,0,0.5)
  965. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  966. p1.Anchored = true
  967. p1.CanCollide = false
  968. p1.Transparency = 0.3
  969. p1.Material = "Neon"
  970. p1.BrickColor = BrickColor.Black()
  971. local p2 = p1:Clone()
  972. p2.CFrame = rleg.CFrame * CFrame.new(0,0,0.5)
  973. p2.CFrame = p2.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  974. game:GetService("Debris"):AddItem(p1,0.05)
  975. game:GetService("Debris"):AddItem(p2,0.05)
  976. end
  977. end
  978. end)
  979. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement