Hugo1234cool

Untitled

Mar 10th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.31 KB | None | 0 0
  1. plr = game:GetService("Players").hugeitor22
  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)) if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
  199. do
  200. script.Parent = owner.Character
  201. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  202. local function NewFakeEvent()
  203. local Bind = Instance.new("BindableEvent")
  204. local Fake;Fake = {Connections = {},
  205. fakeEvent=true;
  206. Connect=function(self,Func)
  207. Bind.Event:connect(Func)
  208. self.Connections[Bind] = true
  209. return setmetatable({Connected = true},{
  210. __index = function (self,Index)
  211. if Index:lower() == "disconnect" then
  212. return function() Fake.Connections[Bind] = false;self.Connected = false end
  213. end
  214. return Fake[Index]
  215. end;
  216. __tostring = function() return "Connection" end;
  217. })
  218. end}
  219. Fake.connect = Fake.Connect;return Fake;
  220. end
  221. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  222. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  223. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  224. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  225. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  226. local function TriggerEvent(self,Event,...)
  227. local Trigger = Mouse[Event]
  228. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  229. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  230. end
  231. end
  232. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  233. Event.OnServerEvent:Connect(function(FiredBy,Input)
  234. if FiredBy.Name ~= owner.Name then return end
  235. if Input.MouseEvent then
  236. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  237. else
  238. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  239. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  240. for _,Action in pairs(ContextActionService.Actions) do
  241. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  242. end
  243. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  244. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  245. end
  246. end)
  247. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  248. Event.Parent = NLS([[
  249. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  250. local Input = function(Input,gameProcessedEvent)
  251. if gameProcessedEvent then return end
  252. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  253. end
  254. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  255. local Hit,Target
  256. while wait(1/30) do
  257. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  258. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  259. end
  260. end
  261. ]],owner.Character)
  262. end
  263. RealGame = game;game = setmetatable({},{
  264. __index = function (self,Index)
  265. local Sandbox = function (Thing)
  266. if Thing:IsA("Player") then
  267. local RealPlayer = Thing
  268. return setmetatable({},{
  269. __index = function (self,Index)
  270. local Type = type(RealPlayer[Index])
  271. if Type == "function" then
  272. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  273. return function (self)return InternalData["Mouse"] end
  274. end
  275. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  276. end
  277. return RealPlayer[Index]
  278. end;
  279. __tostring = function(self) return RealPlayer.Name end
  280. })
  281. end
  282. end
  283. if RealGame[Index] then
  284. local Type = type(RealGame[Index])
  285. if Type == "function" then
  286. if Index:lower() == "getservice" or Index:lower() == "service" then
  287. return function (self,Service)
  288. local FakeServices = {
  289. ["players"] = function()
  290. return setmetatable({},{
  291. __index = function (self2,Index2)
  292. local RealService = RealGame:GetService(Service)
  293. local Type2 = type(Index2)
  294. if Type2 == "function" then
  295. return function (self,...) return RealService[Index2](RealService,...)end
  296. else
  297. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  298. return RealService[Index2]
  299. end
  300. end;
  301. __tostring = function(self) return RealGame:GetService(Service).Name end
  302. })
  303. end;
  304. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  305. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  306. ["runservice"] = function()
  307. return setmetatable({},{
  308. __index = function(self2,Index2)
  309. local RealService = RealGame:GetService(Service)
  310. local Type2 = type(Index2)
  311. if Type2 == "function" then
  312. return function (self,...) return RealService[Index2](RealService,...) end
  313. else
  314. local RunServices = {
  315. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  316. ["renderstepped"] = function() return RealService["Stepped"] end
  317. }
  318. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  319. return RealService[Index2]
  320. end
  321. end
  322. })
  323. end
  324. }
  325. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  326. return RealGame:GetService(Service)
  327. end
  328. end
  329. return function (self,...) return RealGame[Index](RealGame,...) end
  330. else
  331. if game:GetService(Index) then return game:GetService(Index) end
  332. return RealGame[Index]
  333. end
  334. end
  335. return nil
  336. end
  337. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
  338.  
  339. for i=0,1,0.1 do
  340. lshold.C0 = lshold.C0:lerp(CFrame.new(-1,0.5,-0.5)*CFrame.Angles(rad(0),rad(0),-rad(90)),i)
  341. rshold.C0 = rshold.C0:lerp(CFrame.new(1,0.5,-0.5)*CFrame.Angles(rad(0),rad(0),rad(90)),i)
  342. if workspace:FindFirstChild("ncl") then
  343. bx.Size = bx.Size:lerp(Vector3.new(20,20,20),i)
  344. end
  345. wait()
  346. end
  347. wait(.5)
  348. attacking = false
  349. elseif key == "e" then
  350. local p1 = Instance.new('Part',workspace)
  351. p1.Size = Vector3.new(10,10,10)
  352. p1.Anchored = true
  353. p1.CanCollide = false
  354. p1.BrickColor = BrickColor.new("Really black")
  355. p1.Material = "Neon"
  356. p1.CFrame = torso.CFrame
  357. local p2 = p1:Clone()
  358. p2.Parent = workspace
  359. invis = not invis
  360. if not invis then
  361. chat("Shadow Walker deactivate!",Color3.fromRGB(45,45,45))
  362. if entang then
  363. entInvis = false
  364. for _,v in pairs(char:GetChildren()) do
  365. if v:IsA('BasePart') and v.Name ~= "HumanoidRootPart" then
  366. v.Transparency = 0
  367. end
  368. end
  369. end
  370. else
  371. chat("Shadow Walker activate!",Color3.fromRGB(45,45,45))
  372. if entang then
  373. entInvis = true
  374. for _,v in pairs(char:GetChildren()) do
  375. if v:IsA('BasePart') and v.Name ~= "HumanoidRootPart" then
  376. v.Transparency = 1
  377. end
  378. end
  379. end
  380. end
  381. for i=0,1,0.1 do
  382. pcall(function()
  383. p1.CFrame = p1.CFrame:lerp(torso.CFrame*CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360))),i)
  384. p2.CFrame = p1.CFrame:lerp(torso.CFrame*CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360))),i)
  385. p1.Transparency = i
  386. p2.Transparency = i
  387. end)
  388. wait()
  389. end
  390. p1:Destroy()
  391. p2:Destroy()
  392. elseif key == "r" then
  393. local target = nil
  394. local s = pcall(function()
  395. local trg = repParent(m.Target)
  396. if trg:FindFirstChildOfClass("Humanoid") and trg:FindFirstChild("Head") and trg:FindFirstChild("Torso") then
  397. target = trg
  398. end
  399. end)
  400. if s and target ~= nil then
  401. attacking = true
  402. local throw = false
  403. local done = false
  404. coroutine.resume(coroutine.create(function()
  405. local part = Instance.new('Part',char)
  406. local vel = Instance.new('BodyVelocity',part)
  407. game:GetService("Debris"):AddItem(part,5)
  408. part.Size = Vector3.new(1,1,1)
  409. --part.Transparency = 1
  410. part.BrickColor = BrickColor.Black()
  411. part.Anchored = true
  412. smoothPart(part)
  413. part.CanCollide = false
  414. part.CFrame = rarm.CFrame * CFrame.new(0,0,-2)
  415. repeat
  416. part.CFrame = rarm.CFrame * CFrame.new(0,0,-2)
  417. part.CFrame = part.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  418. wait()
  419. until throw
  420. part:BreakJoints()
  421. vel.MaxForce = Vector3.new(9999,9999,9999)
  422. part.Anchored = false
  423. coroutine.resume(coroutine.create(function()
  424. local dying = false
  425. repeat
  426. if (target.Head.Position-part.Position).magnitude <= 10 then
  427. done = true
  428. part:Destroy()
  429. for _,v in pairs(target:GetChildren()) do
  430. if v:IsA('Part') then
  431. v.BrickColor = BrickColor.Black()
  432. end
  433. end
  434. pcall(function()
  435. target.Torso.Anchored = true
  436. target.Torso.CFrame = target.Torso.CFrame * CFrame.new(0,5,0)
  437. local tls = target.Torso["Left Shoulder"]
  438. local trs = target.Torso["Right Shoulder"]
  439. local tlh = target.Torso["Left Hip"]
  440. local trh = target.Torso["Right Hip"]
  441. local tlh = target.Torso["Left Hip"]
  442. local tn = target.Torso["Neck"]
  443. for i=0,1,0.1 do
  444. 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)
  445. 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)
  446. 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)
  447. 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)
  448. 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)
  449. wait()
  450. end
  451. target:BreakJoints()
  452. target = nil
  453. if attacking then
  454. attacking = false
  455. end
  456. end)
  457. dying = true
  458. end
  459. wait()
  460. until dying
  461. end))
  462. repeat
  463. part.CFrame = CFrame.new(part.Position,target.Head.Position)
  464. vel.Velocity = part.CFrame.lookVector * 100
  465. wait()
  466. until done
  467. end))
  468. for i=0,1,0.1 do
  469. rshold.C0 = rshold.C0:lerp(CFrame.new(1,1,-0.5)*CFrame.Angles(rad(0),rad(0),rad(150)),i)
  470. wait()
  471. end
  472. chat("Shadow Bullet!",Color3.fromRGB(50,50,50))
  473. throw = true
  474. attacking = false
  475. end
  476. elseif key == "t" then
  477. local pTarg = nil
  478. local s = pcall(function()
  479. if m.Target ~= nil then
  480. local trg = repParent(m.Target)
  481. if trg:FindFirstChildOfClass("Humanoid") and trg:FindFirstChild("Head") then
  482. pTarg = trg
  483. end
  484. end
  485. end)
  486. if s and pTarg ~= nil then
  487. local portal = Instance.new('Part',workspace)
  488. local orig = Instance.new('Part',workspace)
  489. local dead = false
  490. orig.Anchored = true
  491. orig.CanCollide = false
  492. orig.Transparency = 1
  493. portal.Shape = "Cylinder"
  494. portal.Anchored = true
  495. portal.CanCollide = false
  496. smoothPart(portal)
  497. portal.BrickColor = BrickColor.Black()
  498. portal.Size = Vector3.new(0.2,10,10)
  499. portal.CFrame = pTarg.Head.CFrame * CFrame.new(0,10,-10)
  500. coroutine.resume(coroutine.create(function()
  501. wait(2)
  502. dead = true
  503. portal:Destroy()
  504. end))
  505. coroutine.resume(coroutine.create(function()
  506. local function fireRand()
  507. local chance = floor(random(1,3))
  508. --if chance <= 2 then
  509. local proj = Instance.new('Part',workspace)
  510. local vel = Instance.new('BodyVelocity',proj)
  511. local expl = false
  512. smoothPart(proj)
  513. proj.BrickColor = BrickColor.Black()
  514. proj.Size = Vector3.new(1,1,1)
  515. proj.CanCollide = false
  516. proj.CFrame = portal.CFrame * CFrame.new(2,0,0)
  517. --proj.Anchored=true
  518. vel.MaxForce = Vector3.new(9999,9999,9999)
  519. vel.Velocity = orig.CFrame.lookVector * 50
  520. game:GetService("Debris"):AddItem(proj,2)
  521. proj.Touched:connect(function(h)
  522. if h ~= portal and h ~= orig and not expl then
  523. proj.Anchored = true
  524. expl = true
  525. local p1 = Instance.new('Part',workspace)
  526. local m1 = Instance.new('SpecialMesh',p1)
  527. p1.Anchored = true
  528. p1.CanCollide = false
  529. p1.BrickColor = BrickColor.Black()
  530. p1.CFrame = proj.CFrame
  531. proj:Destroy()
  532. m1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  533. for _,v in pairs(workspace:GetChildren()) do
  534. if v:FindFirstChild("Head") then
  535. if (v.Head.Position-p1.Position).magnitude <= 20 and v:FindFirstChildOfClass("Humanoid") then
  536. for _,b in pairs(v:GetChildren()) do
  537. if b:IsA('Humanoid') then
  538. if b.MaxHealth > 200 then
  539. b.MaxHealth = 200
  540. end
  541. elseif b:IsA('ForceField') then
  542. b:Destroy()
  543. end
  544. end
  545. v:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  546. end
  547. end
  548. end
  549. for i=0,1,0.1 do
  550. p1.CFrame = p1.CFrame:lerp(p1.CFrame*CFrame.Angles(0,rad(5),0),i)
  551. m1.Scale = m1.Scale:lerp(Vector3.new(4,4,4),i)
  552. p1.Transparency = i
  553. wait()
  554. end
  555. p1:Destroy()
  556. end
  557. end)
  558. --else
  559.  
  560. --end
  561. end
  562. repeat
  563. orig.CFrame = CFrame.new(portal.Position,pTarg.Head.Position)
  564. portal.CFrame = CFrame.new(portal.Position,pTarg.Head.Position) * CFrame.Angles(0,rad(90),0)
  565. fireRand()
  566. wait(.5)
  567. until dead
  568. end))
  569. chat("Oblivion Bombardment!",Color3.fromRGB(45,45,45))
  570. end
  571. elseif key == "f" then
  572. if #shadows < 2 then
  573. attacking = true
  574. chat("Oblivion Shade!",Color3.fromRGB(0,0,0))
  575. local shadow = Instance.new('Model',workspace)
  576. shadow.Name = "Shadow Minion"
  577. for _,v in pairs(char:GetChildren()) do
  578. if v:IsA('BasePart') and v.Name ~= "Torso" and v.Name ~= "Left Leg" and v.Name ~= "Right Leg" then
  579. local c = v:Clone()
  580. c.Parent = shadow
  581. if v.Name == "HumanoidRootPart" then
  582. c.Name = "Tor"
  583. shadow.PrimaryPart = c
  584. else
  585. c.Name = "Part"
  586. end
  587. c.Anchored = true
  588. c.CanCollide = false
  589. c:BreakJoints()
  590. smoothPart(c)
  591. c.Transparency = 0.4
  592. c.BrickColor = BrickColor.new("Really black")
  593. c.Material = "Neon"
  594. end
  595. end
  596. shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.new(0,0,-10))
  597. table.insert(shadows,#shadows+1,{Shadow=shadow,Alive=true})
  598. coroutine.resume(coroutine.create(function()
  599. for i,v in pairs(shadows) do
  600. if v.Shadow == shadow then
  601. spawn(function()
  602. while wait() do
  603. if not workspace:FindFirstChild("Shadow Minion") then
  604. v.Alive = false
  605. shadows = {}
  606. end
  607. end
  608. end)
  609. while v.Alive do
  610. wait()
  611. local p1 = Instance.new('Part',workspace)
  612. p1.Size = Vector3.new(2,2,2)
  613. smoothPart(p1)
  614. p1.CFrame = shadow.Tor.CFrame * CFrame.new(0,-1,0)
  615. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  616. p1.Anchored = true
  617. p1.CanCollide = false
  618. p1.Transparency = 0.3
  619. p1.Material = "Neon"
  620. p1.BrickColor = BrickColor.new("Really black")
  621. game:GetService("Debris"):AddItem(p1,0.05)
  622. end
  623. end
  624. end
  625. end))
  626. attacking = false
  627. end
  628. elseif key == "y" then
  629. local targ = nil
  630. local s = pcall(function()
  631. local trg = repParent(m.Target)
  632. if trg:FindFirstChildOfClass("Humanoid") and trg:FindFirstChild("Head") then
  633. targ = trg
  634. end
  635. end)
  636. if targ ~= nil and s then
  637. if #shadows <= 2 and not shadAtck then
  638. shadAtck = true
  639. for i,v in pairs(shadows) do
  640. print(i)
  641. local moving = true
  642. local atck = false
  643. spawn(function()
  644. while wait(.5) do
  645. if atck and shadAtck then
  646. local prt = Instance.new('Part',v.Shadow)
  647. prt.Anchored = true
  648. prt.CanCollide = false
  649. prt.BrickColor = BrickColor.Black()
  650. smoothPart(prt)
  651. prt.Shape = "Ball"
  652. prt.Size = Vector3.new(4,4,4)
  653. prt.CFrame = v.Shadow.PrimaryPart.CFrame
  654. for i=0,1,0.1 do
  655. local orig = prt.CFrame
  656. prt.Size = prt.Size:lerp(Vector3.new(8,8,8),i)
  657. prt.Transparency = i
  658. prt.CFrame = orig
  659. wait()
  660. end
  661. prt:Destroy()
  662. if targ:FindFirstChildOfClass("Humanoid") then
  663. for _,b in pairs(targ:GetChildren()) do
  664. if b:IsA('ForceField') then
  665. b:Destroy()
  666. --[[elseif b:IsA('Humanoid') then
  667. if b.MaxHealth > 200 then
  668. b.MaxHealth = 200
  669. end
  670. end]]
  671. end
  672. end
  673. targ:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  674. end
  675. end
  676. --wait(.5)
  677. end
  678. end)
  679. spawn(function()
  680. while shadAtck do
  681. wait()
  682. if targ:FindFirstChildOfClass("Humanoid")then
  683. if targ:FindFirstChildOfClass("Humanoid").Health > 0 then
  684. if i == 1 then
  685. v.Shadow:SetPrimaryPartCFrame(v.Shadow.PrimaryPart.CFrame:lerp(targ.Head.CFrame * CFrame.new(0,0,-10),0.5))
  686. else
  687. v.Shadow:SetPrimaryPartCFrame(v.Shadow.PrimaryPart.CFrame:lerp(targ.Head.CFrame * CFrame.new(0,0,10),0.5))
  688. end
  689. v.Shadow:SetPrimaryPartCFrame(CFrame.new(v.Shadow.PrimaryPart.Position,targ.Head.Position))
  690. --print(tostring((targ.Head.Position-v.Shadow.PrimaryPart.Position).magnitude))
  691. if (targ.Head.Position-v.Shadow.PrimaryPart.Position).magnitude <= 10 then
  692. atck = true
  693. else
  694. atck = false
  695. end
  696. else
  697. shadAtck = false
  698. end
  699. else
  700. shadAtck = false
  701. end
  702. end
  703. end)
  704. end
  705. end
  706. end
  707. elseif key == "h" then
  708. attacking = true
  709. torso.Anchored = true
  710. local tprt = Instance.new('Part',workspace)
  711. float:Destroy()
  712. tprt.Anchored = true
  713. tprt.BrickColor = BrickColor.new("Really black")
  714. tprt.Material = "Neon"
  715. tprt.CanCollide = false
  716. tprt.Shape = "Cylinder"
  717. tprt.Size = Vector3.new(0.2,5,5)
  718. tprt.Position = m.Hit.p
  719. torso.CFrame = tprt.CFrame * CFrame.new(0,-5,0)
  720. tprt.CFrame = tprt.CFrame * CFrame.Angles(rad(0),rad(0),rad(90))
  721. for i=0,0.4,0.01 do
  722. --neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(rad(0),rad(0),rad(20)),i)
  723. torso.CFrame = torso.CFrame:lerp(tprt.CFrame * CFrame.new(5,0,0) * CFrame.Angles(rad(0),rad(0),-rad(90)),i)
  724. wait()
  725. end
  726. torso.Anchored = false
  727. float = Instance.new('BodyPosition',root)
  728. float.MaxForce = Vector3.new(0,math.huge,0)
  729. float.Position = torso.Position + Vector3.new(0,pos,0)
  730. tprt:Destroy()
  731. attacking = false
  732. elseif key == "g" then
  733. if shadAtck then
  734. chat("Return!",Color3.fromRGB(50,50,50))
  735. shadAtck = false
  736. end
  737. elseif key == "[" then
  738. down = false
  739. up = true
  740. elseif key == "]" then
  741. down = true
  742. up = false
  743. elseif key == "j" then
  744. chat("Expel Shades!",Color3.fromRGB(50,50,50))
  745. if #shadows <= 2 then
  746. for i,v in pairs(shadows) do
  747. v.Alive = false
  748. local dying = false
  749. coroutine.resume(coroutine.create(function()
  750. wait(.5)
  751. dying = true
  752. wait(.1)
  753. v.Shadow:Destroy()
  754. end))
  755. coroutine.resume(coroutine.create(function()
  756. for _,v in pairs(v.Shadow:GetChildren()) do
  757. if v:IsA('BasePart') then
  758. v.Transparency = 1
  759. end
  760. end
  761. while not dying do
  762. wait()
  763. local p1 = Instance.new('Part',workspace)
  764. p1.Size = Vector3.new(4,4,4)
  765. smoothPart(p1)
  766. p1.CFrame = v.Shadow.PrimaryPart.CFrame
  767. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  768. p1.Anchored = true
  769. p1.CanCollide = false
  770. p1.Transparency = 0.3
  771. p1.Material = "Neon"
  772. p1.BrickColor = BrickColor.Black()
  773. game:GetService("Debris"):AddItem(p1,0.05)
  774. end
  775. end))
  776. end
  777. end
  778. elseif key == "z" then
  779. attacking = true
  780. local d = false
  781. chat("Planes of Oblivion!",Color3.fromRGB(0,0,0))
  782. local port = Instance.new('Part',workspace)
  783. port.Shape = "Ball"
  784. port.Size = Vector3.new(.2,.2,.2)
  785. port.Anchored = true
  786. port.CanCollide = false
  787. port.CFrame = head.CFrame * CFrame.new(0,10,0)
  788. port.BrickColor = BrickColor.new("Really black")
  789. port.Material = "Neon"
  790. smoothPart(port)
  791. for i=0,1,0.1 do
  792. port.Size = port.Size:lerp(Vector3.new(10,10,10),i)
  793. wait()
  794. end
  795. attacking = false
  796. coroutine.resume(coroutine.create(function()
  797. wait(5)
  798. d = true
  799. wait(.1)
  800. for i=0,1,0.1 do
  801. port.Size = port.Size:lerp(Vector3.new(.2,.2,.2),i)
  802. wait()
  803. end
  804. port:Destroy()
  805. end))
  806. spawn(function()
  807. repeat
  808. for _,v in pairs(workspace:GetChildren()) do
  809. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChild("Head") and v.Name ~= "Lord of the Shadows" then
  810. local expl = false
  811. local hum = v:FindFirstChildOfClass("Humanoid")
  812. local targHead = v:FindFirstChild("Head")
  813. local proj = Instance.new('Part',workspace)
  814. local vel = Instance.new('BodyVelocity',proj)
  815. smoothPart(proj)
  816. proj.Size = Vector3.new(1,1,1)
  817. proj.BrickColor = BrickColor.Black()
  818. proj.Material = "Neon"
  819. proj.CanCollide = false
  820. proj.Name = "Oblivion Bullet"
  821. proj.CFrame = port.CFrame-- * CFrame.new(0,-10,0)
  822. vel.MaxForce = Vector3.new(9999,9999,9999)
  823. game:GetService("Debris"):AddItem(proj,5)
  824. proj.Touched:connect(function(h)
  825. if h~=port and h.Name ~= proj.Name and h.Parent.Name ~= "Lord of the Shadows" then
  826. proj.Anchored = true
  827. expl = true
  828. local p1 = Instance.new('Part',workspace)
  829. local m1 = Instance.new('SpecialMesh',p1)
  830. p1.Anchored = true
  831. p1.CanCollide = false
  832. p1.CFrame = proj.CFrame
  833. m1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  834. proj:Destroy()
  835. if hum.MaxHealth > 200 then
  836. hum.MaxHealth = 200
  837. end
  838. for _,b in pairs(v:GetChildren()) do
  839. if b:IsA('ForceField') then
  840. b:Destroy()
  841. end
  842. end
  843. hum:TakeDamage(10)
  844. for i=0,1,0.1 do
  845. m1.Scale = m1.Scale:lerp(Vector3.new(4,4,4),i)
  846. p1.Transparency = i
  847. wait()
  848. end
  849. p1:Destroy()
  850. if hum.Health < 1 then
  851. coroutine.resume(coroutine.create(function()
  852. for _,b in pairs(v:GetChildren()) do
  853. if b:IsA('BasePart') then
  854. b.BrickColor = BrickColor.Black()
  855. spawn(function()
  856. pcall(function()
  857. for i=0,1,0.1 do
  858. b.Transparency = i
  859. wait()
  860. end
  861. b:Destroy()
  862. end)
  863. end)
  864. end
  865. end
  866. end))
  867. end
  868. end
  869. end)
  870. spawn(function()
  871. repeat
  872. proj.CFrame = CFrame.new(proj.Position,targHead.Position)
  873. vel.Velocity = proj.CFrame.lookVector * 100
  874. wait()
  875. until expl
  876. end)
  877. end
  878. end
  879. wait(.5)
  880. until d
  881. end)
  882. elseif key == "x" then
  883. local ptrg = nil
  884. local s = pcall(function()
  885. local trg = repParent(m.Target)
  886. if trg:FindFirstChildOfClass("Humanoid") then
  887. ptrg = trg
  888. end
  889. end)
  890. if s and ptrg ~= nil then
  891. human:ChangeState(11)
  892. attacking = true
  893. for _,v in pairs(ptrg:GetChildren()) do
  894. if v:IsA('BasePart') then
  895. v.Anchored = true
  896. end
  897. end
  898. if ptrg:FindFirstChild("Torso") then
  899. torso.CFrame = ptrg:FindFirstChild("Torso").CFrame * CFrame.new(0,0,2)
  900. elseif ptrg:FindFirstChild("HumanoidRootPart") then
  901. torso.CFrame = ptrg:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,2)
  902. end
  903. chat("The oblivion planes are calling...",Color3.fromRGB(50,50,50))
  904. local part = Instance.new('Part',workspace)
  905. part.Shape = "Ball"
  906. part.Size = Vector3.new(10,10,10)
  907. part.Anchored = true
  908. part.CanCollide = false
  909. part.BrickColor = BrickColor.new("Really black")
  910. part.Material = "Neon"
  911. smoothPart(part)
  912. part.CFrame = torso.CFrame
  913. for _,v in pairs(ptrg:GetChildren()) do
  914. if v:IsA('BasePart') then
  915. v.Anchored = true
  916. v.Transparency = 1
  917. if v.Name == "Head" and v:FindFirstChild("face") then
  918. v.face:Destroy()
  919. elseif v.Name == "Head" and v:FindFirstChild("Face") then
  920. v.Face:Destroy()
  921. end
  922. end
  923. end
  924. for i=0,1,0.1 do
  925. part.Size = part.Size:lerp(Vector3.new(.2,.2,.2),i)
  926. for _,v in pairs(ptrg:GetChildren()) do
  927. if v:IsA('BasePart') then
  928. v.CFrame = v.CFrame:lerp(part.CFrame,i)
  929. end
  930. end
  931. part.Transparency = i
  932. wait()
  933. end
  934. part:Destroy()
  935. ptrg:BreakJoints()
  936. attacking = false
  937. end
  938. end
  939. end
  940. if key == "[" then
  941. down = false
  942. up = true
  943. elseif key == "]" then
  944. down = true
  945. up = false
  946. end
  947. end)
  948. m.KeyUp:connect(function(key)
  949. if key == "]" then
  950. down = false
  951. elseif key == "[" then
  952. up = false
  953. end
  954. end)
  955. spawn(function()
  956. while wait() do
  957. if down then
  958. if float.Position ~= Vector3.new(0,2,0) then
  959. float.Position = float.Position - Vector3.new(0,1,0)
  960. end
  961. end
  962. if up then
  963. float.Position = float.Position + Vector3.new(0,1,0)
  964. end
  965. end
  966. end)
  967. spawn(function()
  968. local angle = 1
  969. while game:GetService("RunService").RenderStepped:wait() do
  970. if not shadAtck and #shadows <= 2 then
  971. if not invis then
  972. for i,v in pairs(shadows) do
  973. if v.Alive then
  974. angle = angle + 1
  975. if i == 1 then
  976. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15))
  977. --v.Shadow.PrimaryPart.CFrame:lerp(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15),0.1)
  978. else
  979. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,15))
  980. end
  981. v.Shadow:SetPrimaryPartCFrame(CFrame.new(v.Shadow.PrimaryPart.Position,torso.Position)*CFrame.Angles(0,rad(180),0))
  982. end
  983. end
  984. elseif entang then
  985. for i,v in pairs(shadows) do
  986. if v.Alive then
  987. angle = angle + 1
  988. if i == 1 then
  989. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15))
  990. --v.Shadow.PrimaryPart.CFrame:lerp(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,-15),0.1)
  991. else
  992. v.Shadow:SetPrimaryPartCFrame(torso.CFrame * CFrame.Angles(0,rad(angle),0) * CFrame.new(0,0,15))
  993. end
  994. v.Shadow:SetPrimaryPartCFrame(CFrame.new(v.Shadow.PrimaryPart.Position,torso.Position)*CFrame.Angles(0,rad(180),0))
  995. end
  996. end
  997. end
  998. end
  999. end
  1000. end)
  1001. game:GetService("RunService").RenderStepped:connect(function()
  1002. if fin then
  1003. if plr.Character ~= char then
  1004. plr.Character = char
  1005. end
  1006. pcall(function()
  1007. if not workspace:FindFirstChild("Lord of the Shadows") then
  1008. cloneMod = Instance.new('Model',workspace)
  1009. cloneMod.Name = "Lord of the Shadows"
  1010. end
  1011. if not invis and not entang then
  1012. for _,v in pairs(char:GetChildren()) do
  1013. if v:IsA('Part') and v.Name ~= "Torso" then
  1014. if v.Name == "ncl" then
  1015. local c = v:Clone()
  1016. c.Parent = cloneMod
  1017. c.Name = "Part"
  1018. c.Anchored = true
  1019. c.CanCollide = false
  1020. c:BreakJoints()
  1021. c.BrickColor = BrickColor.Black()
  1022. c.Transparency = 0.5
  1023. smoothPart(c)
  1024. game:GetService("Debris"):AddItem(c,0.05)
  1025. else
  1026. local c = v:Clone()
  1027. c.Parent = cloneMod
  1028. c.Name = "Part"
  1029. c.Anchored = true
  1030. c.CanCollide = false
  1031. c:BreakJoints()
  1032. c.BrickColor = BrickColor.Black()
  1033. c.Transparency = 0.3
  1034. smoothPart(c)
  1035. game:GetService("Debris"):AddItem(c,0.05)
  1036. end
  1037. end
  1038. end
  1039. end
  1040. end)
  1041. human.Health = human.MaxHealth
  1042. if not attacking then
  1043. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1044. lshold.C0 = lshold.C0:lerp(CFrame.new(-1,0.5,-1.3)*CFrame.Angles(rad(0),rad(0),rad(70)),0.4)
  1045. rshold.C0 = rshold.C0:lerp(CFrame.new(1,0.5,-1.3)*CFrame.Angles(rad(0),rad(0),-rad(70)),0.4)
  1046. lhip.C0 = lhip.C0:lerp(CFrame.new(-0.5,-1,0.5),0.4)
  1047. rhip.C0 = rhip.C0:lerp(CFrame.new(0.5,-1,0.5),0.4)
  1048. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1049. rhip.C0 = rhip.C0:lerp(CFrame.new(0.5,-0.8,0.5)*CFrame.Angles(-rad(25),rad(0),rad(5)),0.4)
  1050. lhip.C0 = lhip.C0:lerp(CFrame.new(-0.5,-0.8,0.5)*CFrame.Angles(-rad(25),rad(0),-rad(5)),0.4)
  1051. end
  1052. end
  1053. end
  1054. end)
  1055. spawn(function()
  1056. while fin do
  1057. wait()
  1058. if not invis then
  1059. local p1 = Instance.new('Part',workspace)
  1060. p1.Size = Vector3.new(2,2,2)
  1061. smoothPart(p1)
  1062. p1.CFrame = lleg.CFrame * CFrame.new(0,0,0.5)
  1063. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  1064. p1.Anchored = true
  1065. p1.CanCollide = false
  1066. p1.Transparency = 0.3
  1067. p1.Material = "Neon"
  1068. p1.BrickColor = BrickColor.Black()
  1069. local p2 = p1:Clone()
  1070. p2.CFrame = rleg.CFrame * CFrame.new(0,0,0.5)
  1071. p2.CFrame = p2.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  1072. game:GetService("Debris"):AddItem(p1,0.05)
  1073. game:GetService("Debris"):AddItem(p2,0.05)
  1074. elseif entang and not entInvis then
  1075. local p1 = Instance.new('Part',workspace)
  1076. p1.Size = Vector3.new(2,2,2)
  1077. smoothPart(p1)
  1078. p1.CFrame = lleg.CFrame * CFrame.new(0,0,0.5)
  1079. p1.CFrame = p1.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  1080. p1.Anchored = true
  1081. p1.CanCollide = false
  1082. p1.Transparency = 0.3
  1083. p1.Material = "Neon"
  1084. p1.BrickColor = BrickColor.Black()
  1085. local p2 = p1:Clone()
  1086. p2.CFrame = rleg.CFrame * CFrame.new(0,0,0.5)
  1087. p2.CFrame = p2.CFrame * CFrame.Angles(rad(random(-360,360)),rad(random(-360,360)),rad(random(-360,360)))
  1088. game:GetService("Debris"):AddItem(p1,0.05)
  1089. game:GetService("Debris"):AddItem(p2,0.05)
  1090. end
  1091. end
  1092. end)
Advertisement
Add Comment
Please, Sign In to add comment