Advertisement
Dark_EccentricYT

Untitled

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