Advertisement
naser2345

Ender

Dec 31st, 2017
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.11 KB | None | 0 0
  1.  
  2.  
  3. musicOn = true
  4.  
  5. Me = game.Players.LocalPlayer
  6. player = Me
  7. char = Me.Character
  8. chara = char
  9. larm = char["Left Arm"]
  10. rarm = char["Right Arm"]
  11. lleg = char["Left Leg"]
  12. rleg = char["Right Leg"]
  13. torso = char.Torso
  14. hed = char.Head
  15. mouse = player:GetMouse()
  16. lght = game.Lighting
  17. lichtact = false
  18. moosicact = false
  19. gotsagofest = true
  20. chara.Humanoid.MaxHealth = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  21. chara.Humanoid.Health = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  22.  
  23.  
  24.  
  25. wait(2.5)
  26.  
  27. chara.Humanoid.WalkSpeed = 10
  28. chara.Humanoid.JumpPower = 40
  29. local naeeym = Instance.new("BillboardGui",chara)
  30. naeeym.Size = UDim2.new(0,100,0,40)
  31. naeeym.StudsOffset = Vector3.new(0,2,0)
  32. naeeym.Adornee = chara.Head
  33. local tecks = Instance.new("TextLabel",naeeym)
  34. tecks.BackgroundTransparency = 1
  35. tecks.BorderSizePixel = 0
  36. tecks.Text = "Ender"
  37. tecks.Font = "Antique"
  38. tecks.FontSize = "Size36"
  39. tecks.TextStrokeTransparency = 0.5
  40. tecks.TextColor3 = Color3.new(0,0,0)
  41. rrer = BrickColor.new("Really red")
  42. tecks.TextStrokeColor3 = rrer.Color
  43. tecks.Size = UDim2.new(1,0,0.5,0)
  44. local licht = Instance.new("PointLight",chara.Torso)
  45. licht.Color = tecks.TextStrokeColor3
  46. licht.Range = 60
  47. licht.Brightness = 1
  48. licht.Enabled = false
  49.  
  50.  
  51. ------------------------------- Player -------------------------------------------------------------------
  52. local z = Instance.new("Sound",char)
  53. z.Looped = true
  54. z.SoundId = "rbxassetid://167161785"
  55. z.Volume = 2.25
  56. if musicOn then
  57. z:Play()
  58. end
  59.  
  60. Mouse = player:GetMouse()
  61.  
  62. local l = Instance.new("ColorCorrectionEffect",game.Lighting)
  63.  
  64. for i,v in pairs(chara:children()) do
  65. if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
  66. v:Destroy()
  67. end
  68. end
  69. char.Head.face:Destroy()
  70.  
  71. char["Body Colors"].HeadColor, char["Body Colors"].LeftArmColor, char["Body Colors"].LeftLegColor, char["Body Colors"].RightArmColor, char["Body Colors"].RightLegColor, char["Body Colors"].TorsoColor = BrickColor.new("Black"), BrickColor.new("Black"), BrickColor.new("Black"), BrickColor.new("Black"), BrickColor.new("Black"), BrickColor.new("Really black")
  72. local Orbd = Instance.new("Part", char)
  73. Orbd.Name = "Orbd"
  74. Orbd.Shape = Enum.PartType.Ball
  75. Orbd.CanCollide = false
  76. Orbd.BrickColor = BrickColor.new("Really red")
  77. Orbd.Transparency = 0
  78. Orbd.Material = "Neon"
  79. Orbd.Size = Vector3.new(0.1, 0.1, 0.1)
  80. Orbd.TopSurface = Enum.SurfaceType.Smooth
  81. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  82. local Weld = Instance.new("Weld", Orbd)
  83. Weld.Part0 = char.Head
  84. Weld.Part1 = Orbd
  85. Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
  86. local glov = Instance.new("PointLight", Orbd)
  87. glov.Brightness = 0.25
  88. glov.Range = 20
  89. glov.Color = Color3.new(255, 0, 0)
  90. local Orbvc = Instance.new("Part", char)
  91. Orbvc.Name = "Orbvc"
  92. Orbvc.Shape = Enum.PartType.Ball
  93. Orbvc.CanCollide = false
  94. Orbvc.BrickColor = BrickColor.new("Really red")
  95. Orbvc.Transparency = 0
  96. Orbvc.Material = "Neon"
  97. Orbvc.Size = Vector3.new(0.1, 0.1, 0.1)
  98. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  99. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  100. local Weld = Instance.new("Weld", Orbvc)
  101. Weld.Part0 = char.Head
  102. Weld.Part1 = Orbvc
  103. Weld.C1 = CFrame.new(0.2, -0.2, 0.5)
  104. local glo = Instance.new("PointLight", Orbvc)
  105. glo.Brightness = 0.25
  106. glo.Range = 20
  107. glo.Color = Color3.new(255, 0, 0)
  108.  
  109. local IsFreeFalling = false
  110. local SpinPart = Instance.new('Part')
  111. SpinPart.Transparency = 1
  112. SpinPart.Size = Vector3.new(25,1,25)
  113. SpinPart.CanCollide = false
  114. SpinPart.FormFactor = 'Custom'
  115. local FX = Instance.new('ParticleEmitter',SpinPart)
  116. FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Black").Color, 0)}), NumberSequence.new(0.25), NumberRange.new(3.75,3.75), 125, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://132883219",-0.1
  117. local FX = Instance.new('ParticleEmitter',SpinPart)
  118. FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Black").Color, 0)}), NumberSequence.new(0.25), NumberRange.new(3.75,3.75), 125, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://132883219",0.1
  119. do
  120. local tspin = Instance.new('BodyAngularVelocity')
  121. tspin.angularvelocity = Vector3.new(0,1,0)
  122. tspin.maxTorque =Vector3.new(math.huge,math.huge,math.huge)
  123. tspin.Parent = SpinPart
  124. end
  125. local SpinPos = Instance.new('BodyPosition')
  126. SpinPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  127. SpinPos.Parent = SpinPart
  128.  
  129. function Equipped()
  130. IsEquipped = true
  131. local MyTorso = char.Torso
  132. if MyTorso then
  133. spawn(function()
  134. local startTime = tick()
  135. SpinPart.CFrame = CFrame.new(MyTorso.CFrame.p+Vector3.new(0,-2.8,0))
  136. SpinPart.Parent = MyTorso
  137. local fadeIn = true
  138. while IsEquipped do
  139. if not IsFreeFalling then
  140. SpinPos.position = MyTorso.CFrame.p+Vector3.new(0,-2.8,0)
  141. end
  142. wait()
  143. end
  144. SpinPart.Parent = nil
  145.  
  146. end)
  147. end
  148. end
  149.  
  150.  
  151. wait(0.01)
  152. Equipped()
  153.  
  154.  
  155. function start()
  156. print("Darkness falls across the battlefield...")
  157. wait()
  158. print("----------------------------------------")
  159. wait()
  160. print(" - Ender booted up. -")
  161. wait()
  162. print("- Ender written by yeox769. -")
  163. i = 0
  164. while i<1 do
  165. wait()
  166. i = i + 0.01
  167. l.Contrast,l.Saturation,l.Brightness = l.Contrast + 0.02, l.Saturation - 0.0075, l.Brightness + 0.00375
  168. l.TintColor = Color3.new(1,1-i,1-i)
  169. end
  170. end
  171.  
  172. delay(0,start)
  173.  
  174. TC = chara.HumanoidRootPart.RootJoint
  175. HC = chara.Torso.Neck
  176. RAC = chara.Torso["Right Shoulder"]
  177. LAC = chara.Torso["Left Shoulder"]
  178. RLC = chara.Torso["Right Hip"]
  179. LLC = chara.Torso["Left Hip"]
  180. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  181. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  182. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  183. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  184. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  185. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  186. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  187. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  188. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  189. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  190. RW = Instance.new("Weld",HC.Parent)
  191. RW.Part1 = HC.Parent
  192. RW.Part0 = chara["Right Arm"]
  193. RW.C0 = RWF
  194. LW = Instance.new("Weld",HC.Parent)
  195. LW.Part1 = HC.Parent
  196. LW.Part0 = chara["Left Arm"]
  197. LW.C0 = LWF
  198. RLW = nil
  199. LLW = nil
  200.  
  201.  
  202. function clerp(a,b,c)
  203. return a:lerp(b,c)
  204. end
  205.  
  206. TC.C0 = TCF
  207. HC.C0 = HCF
  208. RW.C0 = RWF
  209. LW.C0 = LWF
  210.  
  211. --Idle Clerp--
  212. ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(10))
  213. IHCF = HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-10))
  214. IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-2))
  215. ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
  216.  
  217. TC.C0 = ITCF
  218. HC.C0 = IHCF
  219. RW.C0 = IRWF
  220. LW.C0 = ILWF
  221.  
  222.  
  223.  
  224.  
  225.  
  226. New = function(Object, Parent, Name, Data)
  227. local Object = Instance.new(Object)
  228. for Index, Value in pairs(Data or {}) do
  229. Object[Index] = Value
  230. end
  231. Object.Parent = Parent
  232. Object.Name = Name
  233. return Object
  234. end
  235.  
  236. function ScatterEff(part)
  237. local eff1 = Instance.new("ParticleEmitter",part)
  238. eff1.Size = NumberSequence.new(.1)
  239. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.9,0),NumberSequenceKeypoint.new(1,1)})
  240. eff1.LightEmission = 1
  241. eff1.Lifetime = NumberRange.new(1)
  242. eff1.Speed = NumberRange.new(1)
  243. eff1.Rate = 100
  244. eff1.VelocitySpread = 10000
  245. eff1.Texture = "rbxassetid://347504241"
  246. eff1.Color = ColorSequence.new(Color3.new(1,0,0))
  247. local eff2 = Instance.new("ParticleEmitter",part)
  248. eff2.Size = NumberSequence.new(.1)
  249. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.9,0),NumberSequenceKeypoint.new(1,1)})
  250. eff2.LightEmission = 1
  251. eff2.Lifetime = NumberRange.new(1)
  252. eff2.Speed = NumberRange.new(1)
  253. eff2.Rate = 100
  254. eff2.VelocitySpread = 10000
  255. eff2.Texture = "rbxassetid://347504259"
  256. eff2.Color = ColorSequence.new(Color3.new(1,0,0))
  257. end
  258.  
  259. function BurningEff(part)
  260. local eff1 = Instance.new("ParticleEmitter",part)
  261. eff1.Size = NumberSequence.new(.1)
  262. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  263. eff1.LightEmission = 1
  264. eff1.Lifetime = NumberRange.new(1)
  265. eff1.Speed = NumberRange.new(0)
  266. eff1.Rate = 100
  267. eff1.Texture = "rbxassetid://347504241"
  268. eff1.Acceleration = Vector3.new(0,10,0)
  269. eff1.Color = ColorSequence.new(Color3.new(1,0,0))
  270. local eff2 = Instance.new("ParticleEmitter",part)
  271. eff2.Size = NumberSequence.new(.1)
  272. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  273. eff2.LightEmission = 1
  274. eff2.Lifetime = NumberRange.new(1)
  275. eff2.Speed = NumberRange.new(0)
  276. eff2.Rate = 100
  277. eff2.Texture = "rbxassetid://347504259"
  278. eff2.Acceleration = Vector3.new(0,10,0)
  279. eff2.Color = ColorSequence.new(Color3.new(1,0,0))
  280. local eff3 = Instance.new("ParticleEmitter",part)
  281. eff3.Size = NumberSequence.new(1)
  282. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  283. eff3.LightEmission = 1
  284. eff3.Lifetime = NumberRange.new(1)
  285. eff3.Speed = NumberRange.new(0)
  286. eff3.Rate = 100
  287. eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
  288. eff3.Acceleration = Vector3.new(0,10,0)
  289. eff3.Color = ColorSequence.new(Color3.new(1,0,0))
  290. end
  291.  
  292.  
  293.  
  294. slashsnd = New("Sound",chara.Torso,"Slash",{SoundId = "rbxassetid://28144425",PlaybackSpeed = .7,Volume = 5})
  295. hitsnd = New("Sound",chara.Torso,"Hit",{SoundId = "rbxassetid://429400881",PlaybackSpeed = .7,Volume = 5})
  296. telesnd = New("Sound",chara.Torso,"Tele",{SoundId = "rbxassetid://2767090",PlaybackSpeed = .7,Volume = 5})
  297. burnsnd = New("Sound",chara.Torso,"Burn",{SoundId = "rbxassetid://32791565",PlaybackSpeed = .7,Volume = 5})
  298. music1 = New("Sound",chara.Torso,"Music1",{SoundId = "rbxassetid://151038517",PlaybackSpeed = .5,Volume = 10,Looped = true})
  299. music2 = New("Sound",chara.Torso,"Music2",{SoundId = "rbxassetid://11984351",PlaybackSpeed = .2,Volume = 5,Looped = true})
  300. deathmus = New("Sound",chara.Torso,"DeathMus",{SoundId = "rbxassetid://19094700",PlaybackSpeed = .5,Volume = 5,Looped = true})
  301. deathex = New("Sound",chara.Torso,"DeathEx",{SoundId = "rbxassetid://11984351",PlaybackSpeed = 1,Volume = 5})
  302.  
  303.  
  304.  
  305.  
  306.  
  307. --Soul Steal--
  308. function SoulSteal(pos)
  309. local soulst = coroutine.wrap(function()
  310. local soul = Instance.new("Part",chara)
  311. soul.Size = Vector3.new(0,0,0)
  312. soul.CanCollide = false
  313. soul.Anchored = false
  314. soul.Position = pos
  315. soul.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  316. soul.Transparency = 1
  317. local ptc = Instance.new("ParticleEmitter",soul)
  318. ptc.Texture = "http://www.roblox.com/asset/?id=413366101"
  319. ptc.Size = NumberSequence.new(.5)
  320. ptc.LockedToPart = true
  321. ptc.Speed = NumberRange.new(0)
  322. ptc.Lifetime = NumberRange.new(9999)
  323. local bodpos = Instance.new("BodyPosition",soul)
  324. bodpos.Position = pos
  325. wait(2)
  326. soul.Touched:connect(function(hit)
  327. if hit.Parent == chara then
  328. soul:Destroy()
  329. end
  330. end)
  331. while soul do
  332. wait(.1)
  333. bodpos.Position = chara.Torso.Position
  334. end
  335. end)
  336. soulst()
  337. end
  338.  
  339. --Death of a Mortal--
  340. function KillMortal(hitdude)
  341. local torsy = nil
  342. if hitdude:FindFirstChild("Torso")~=nil then
  343. torsy = hitdude.Torso
  344. elseif hitdude:FindFirstChild("UpperTorso")~=nil then
  345. torsy = hitdude.UpperTorso
  346. end
  347. local val = Instance.new("ObjectValue",hitdude)
  348. val.Name = "HasBeenHit"
  349. hitdude:BreakJoints()
  350. hitdude.Humanoid:Destroy()
  351. SoulSteal(torsy.Position)
  352. local chi = hitdude:GetChildren()
  353. for i = 1, #chi do
  354. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  355. local bodpos = Instance.new("BodyPosition",chi[i])
  356. bodpos.Position = chi[i].Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  357. ScatterEff(chi[i])
  358. chi[i].BrickColor = BrickColor.new("Really black")
  359. end
  360. end
  361. for i = 1, 4 do
  362. for i = 1, #chi do
  363. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  364. chi[i].Transparency = chi[i].Transparency + .25
  365. wait(.01)
  366. end
  367. end
  368. end
  369. for i = 1, #chi do
  370. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  371. chi[i]:Destroy()
  372. end
  373. end
  374. end
  375.  
  376.  
  377. function Teleport(pos)
  378. telesnd:Play()
  379. local ch = chara:GetChildren()
  380. for i = 1, #ch do
  381. if ch[i].ClassName == "Part" and ch[i].Name ~= "HumanoidRootPart" then
  382. local trace = Instance.new("Part",game.Workspace)
  383. trace.Size = ch[i].Size
  384. trace.Material = "Neon"
  385. trace.BrickColor = BrickColor.new("Really black")
  386. trace.Transparency = .3
  387. trace.CanCollide = false
  388. trace.Anchored = true
  389. trace.CFrame = ch[i].CFrame
  390. if ch[i].Name == "Head" then
  391. mehs = Instance.new("CylinderMesh",trace)
  392. mehs.Scale = Vector3.new(1.25,1.25,1.25)
  393. end
  394. tracedisappear = coroutine.wrap(function()
  395. wait(1)
  396. for i = 1, 7 do
  397. wait(.1)
  398. trace.Transparency = trace.Transparency + .1
  399. end
  400. trace:Destroy()
  401. end)
  402. tracedisappear()
  403. end
  404. end
  405. chara.Torso.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  406. end
  407.  
  408.  
  409. function Grab(mouse)
  410. local hit = mouse.Target
  411. if hit ~= nil then
  412. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  413. local torsy = nil
  414. if hit.Parent:FindFirstChild("Torso")~=nil then
  415. torsy = hit.Parent.Torso
  416. elseif hit.Parent:FindFirstChild("UpperTorso")~=nil then
  417. torsy = hit.Parent.UpperTorso
  418. end
  419. local bodpos = Instance.new("BodyPosition",torsy)
  420. bodpos.Position = torsy.Position
  421. wait(1)
  422. burnsnd:Play()
  423. hit.Parent.Humanoid.MaxHealth = 100
  424. bodpos.Position = bodpos.Position + Vector3.new(0,4,0)
  425. for i = 1, 10 do
  426. wait(.1)
  427. BurningEff(torsy)
  428. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
  429. end
  430. KillMortal(hit.Parent)
  431. end
  432. else end
  433. end
  434.  
  435.  
  436. function onKeyDown(key)
  437. if key == "z" then
  438. Teleport(Mouse.Hit.p + Vector3.new(0,2,0))
  439. elseif key == "x" then
  440. Grab(Mouse)
  441. end
  442. end
  443.  
  444. --Mouse Functions--
  445. Mouse = player:GetMouse()
  446. if Mouse then
  447. Mouse.KeyDown:connect(onKeyDown)
  448. end
  449.  
  450. while true do
  451. wait(.01)
  452. chance = math.random(0,100)
  453. if chance < 10 then
  454. sel = math.random(1,3)
  455. if sel == 1 then
  456. tecks.Text = "Endor"
  457. elseif sel == 2 then
  458. tecks.Text = "Eubon"
  459. elseif sel == 3 then
  460. tecks.Text = "Fndcr"
  461. end
  462. else tecks.Text = "Ender"
  463. if chara.Humanoid.Health > 0 then
  464. chara.Humanoid.MaxHealth = math.huge
  465. chara.Humanoid.Health = math.huge
  466. end
  467. if game.Lighting:FindFirstChild("ColorCorrection") == nil then
  468. local l = Instance.new("ColorCorrectionEffect",game.Lighting)
  469. l.Contrast,l.Saturation,l.Brightness = 2, -0.75, 0.375
  470. l.TintColor = Color3.new(1,0,0)
  471. end
  472. tecks.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  473. end
  474. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement