Hugo1234cool

Untitled

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