Mr-Shadow_Cat

Shadows

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