aqzsxw2013

Untitled

Apr 24th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(1)
  2. local function degg()
  3.     local function makesound(id,loop,parent)
  4.         local sound = Instance.new("Sound",parent)
  5.         sound.Looped = loop
  6.         sound.Volume = 4
  7.         sound.SoundId = "rbxassetid://"..id
  8.         sound:Play()
  9.     end
  10.    
  11.     local deggstrution = Instance.new("Model",workspace)
  12.     deggstrution.Name = "Kill it!!"
  13.        
  14.     local Head = Instance.new("Part",deggstrution)
  15.     Head.Name = "Head"
  16.     Head.Material = Enum.Material.ForceField
  17.     Head.BrickColor = BrickColor.new("Institutional white")
  18.     Head.Size = Vector3.new(2, 2.4, 2)
  19.     Head.Position = Vector3.new(5,0,0)
  20.     local db = true
  21.    
  22.     local val = Instance.new("StringValue")
  23.     val.Value="lolno"
  24.     makesound(1530295588,true,Head)
  25.        
  26.     local at1 = Instance.new("Attachment",Head)
  27.     at1.Orientation = Vector3.new(-0, 180, 90)
  28.        
  29.     local p1 = Instance.new("Part",workspace)
  30.     p1.Anchored = true
  31.     p1.CanCollide = false
  32.     p1.Transparency = 1
  33.        
  34.     local at2 = Instance.new("Attachment",p1)
  35.     at2.Orientation = Vector3.new(0, 0, 90)
  36.        
  37.     local ao = Instance.new("AlignOrientation",Head)
  38.     ao.Attachment0 = at2
  39.     ao.Attachment1 = at1
  40.     ao.PrimaryAxisOnly = true
  41.     ao.ReactionTorqueEnabled = true
  42.  
  43.     local mes = Instance.new("SpecialMesh",Head)
  44.     mes.MeshType = Enum.MeshType.FileMesh
  45.     mes.MeshId = "rbxassetid://1527559"
  46.            
  47.     local BG = Instance.new("BillboardGui",Head)
  48.     BG.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
  49.     BG.MaxDistance = 100
  50.     BG.Size = UDim2.new(10,0,2,0)
  51.                
  52.     local hb = Instance.new("TextLabel",BG)
  53.     hb.AnchorPoint = Vector2.new(0,.5)
  54.     hb.BackgroundColor3 = Color3.new(0, 255, 0)
  55.                 hb.BorderColor3 = Color3.new(0,0,0)
  56.                 hb.BorderSizePixel = 10
  57.                 hb.Position = UDim2.new(0, 0,0.5, 0)
  58.                 hb.Size = UDim2.new(1, 0,1, 0)
  59.                 hb.Text = ''
  60.                
  61.             local BG2 = Instance.new("BillboardGui",Head)
  62.             BG2.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
  63.             BG2.MaxDistance = 100
  64.             BG2.Size = UDim2.new(10,0,2,0)
  65.            
  66.                 local hb2 = Instance.new("TextLabel",BG2)
  67.                 hb2.AnchorPoint = Vector2.new(0.5, 0.5)
  68.                 hb2.BackgroundTransparency = 1
  69.                 hb2.BorderColor3 = Color3.new(0,0,0)
  70.                 hb2.BorderSizePixel = 0
  71.                 hb2.Position = UDim2.new(0.5, 0,0.5, 0)
  72.                 hb2.Size = UDim2.new({1, 0},{1, 0})
  73.                 hb2.Text = '1'
  74.                 hb2.TextStrokeTransparency = 0
  75.                 hb2.Font = Enum.Font.SciFi
  76.                 hb2.TextScaled = true
  77.                 hb2.TextColor3 = Color3.new(255, 255, 255)
  78.                 hb2.Size = UDim2.new(1, 0,1, 0)
  79.                
  80.             local BG3 = Instance.new("BillboardGui",Head)
  81.             BG3.ExtentsOffsetWorldSpace = Vector3.new(0, 7.5, 0)
  82.             BG3.MaxDistance = 100
  83.             BG3.Size = UDim2.new(10,0,2,0)
  84.            
  85.                 local hb3 = Instance.new("TextLabel",BG3)
  86.                 hb3.AnchorPoint = Vector2.new(0.5, 0.5)
  87.                 hb3.BackgroundTransparency = 1
  88.                 hb3.BorderColor3 = Color3.new(0,0,0)
  89.                 hb3.BorderSizePixel = 0
  90.                 hb3.Position = UDim2.new(0.5, 0,0.5, 0)
  91.                 hb3.Size = UDim2.new({1, 0},{1, 0})
  92.                 hb3.Font = Enum.Font.SciFi
  93.                 hb3.TextScaled = true
  94.                 hb3.TextColor3 = Color3.new(0, 0, 255)
  95.                 hb3.Size = UDim2.new(1, 0,1, 0)
  96.                 hb3.Text = "[ BOSS! ] === Defender Egg ==="
  97.    
  98.         local level = 1        
  99.            
  100.         local dhum = Instance.new("Humanoid",deggstrution)
  101.         local fal = true
  102.         dhum.Health = 1^level
  103.         dhum.MaxHealth = 1^level
  104.         local health = 1
  105.         for i=1,10 do
  106.                     local players = game:GetService("Players")
  107.                     local GC12 = players:GetChildren()
  108.                     local rannum = math.random(1,#GC12)
  109.                    
  110.                    
  111.                     local part = Instance.new("Part",workspace)
  112.                     part.CanCollide = false
  113.                     if GC12[rannum].Character~=nil then
  114.                         if GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'then
  115.                             local hum = GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'
  116.                            
  117.                             if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'and hum.MoveDirection~=Vector3.new(0,0,0) then
  118.                                 part.CFrame = GC12[rannum].Character:FindFirstChild'HumanoidRootPart'.CFrame + Vector3.new(0,20,0)
  119.                             end
  120.                         end
  121.                     end
  122.                     part.Shape = "Ball"
  123.                     part.BrickColor = BrickColor.new("Institutional white")
  124.                     part.Material = Enum.Material.Neon
  125.                     part.Size = Vector3.new(1,1,1)
  126.                     local atee = Instance.new("Attachment",part)
  127.                     local beam = Instance.new("Beam",part)
  128.                     beam.Attachment0 = atee
  129.                     beam.Attachment1 = at1
  130.                     beam.FaceCamera = true
  131.                     part.Touched:Connect(function(q)
  132.                         if q.Parent:FindFirstChildWhichIsA'Humanoid' and q.Parent~=deggstrution then
  133.                             if q.Parent:FindFirstChildWhichIsA'Humanoid'.Health~=0 and q.Parent:FindFirstChildWhichIsA'Humanoid'.MoveDirection~=Vector3.new(0,0,0)then
  134.                                 q.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
  135.                                 q.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
  136.                             end
  137.                         end
  138.                        
  139.                     end)
  140.                     makesound(12222242,false,part)
  141.                     wait(1)
  142.                     part:Destroy()
  143.                    
  144.         end
  145.         Head.Touched:Connect(function(p)
  146.             if p.Parent:FindFirstChildWhichIsA'Humanoid' and db and p.Parent~="=== Defender Egg ==="then
  147.                 db = false
  148.                 p.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
  149.                 p.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
  150.                 local ex = Instance.new("Explosion",workspace)
  151.                 ex.Position = Head.Position
  152.                 ex.BlastPressure = 10000000000000000
  153.                 ex.DestroyJointRadiusPercent = 0
  154.                 wait(1)
  155.                 ex:Destroy()
  156.                 db = true
  157.             elseif db and p.Parent~="=== Defender Egg ==="then
  158.                 db = false
  159.                 for i=1,10 do
  160.                     local players = game:GetService("Players")
  161.                     local GC12 = players:GetChildren()
  162.                     local rannum = math.random(1,#GC12)
  163.                    
  164.                    
  165.                     local part = Instance.new("Part",workspace)
  166.                     part.CanCollide = false
  167.                     if GC12[rannum].Character~=nil then
  168.                     if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'then
  169.                         part.CFrame = GC12[rannum].Character:FindFirstChild'HumanoidRootPart'.CFrame + Vector3.new(0,20,0)
  170.                     end
  171.                     end
  172.                     part.Shape = "Ball"
  173.                     part.BrickColor = BrickColor.new("Institutional white")
  174.                     part.Material = Enum.Material.Neon
  175.                     part.Size = Vector3.new(1,1,1)
  176.                     local atee = Instance.new("Attachment",part)
  177.                     local beam = Instance.new("Beam",part)
  178.                     beam.Attachment0 = atee
  179.                     beam.Attachment1 = at1
  180.                     beam.FaceCamera = true
  181.                     part.Touched:Connect(function(q)
  182.                         if q.Parent:FindFirstChildWhichIsA'Humanoid' and q.Parent~=deggstrution then
  183.                             if q.Parent:FindFirstChildWhichIsA'Humanoid'.Health~=0 and q.Parent:FindFirstChildWhichIsA'Humanoid'.MoveDirection~=Vector3.new(0,0,0)then
  184.                                 q.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
  185.                                 q.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
  186.                             end
  187.                         end
  188.                        
  189.                     end)
  190.                     makesound(12222242,false,part)
  191.                     wait(1)
  192.                     part:Destroy()
  193.                    
  194.                 end
  195.                 wait(1)
  196.                 db = true
  197.        
  198.             end
  199.         end)
  200.         dhum.HealthChanged:Connect(function()
  201.             if fal then
  202.                 fal = false
  203.                 health = health - 1
  204.                 hb2.Text = tostring(health)
  205.                
  206.                 dhum.Health = health
  207.                 hb.Size = UDim2.new(dhum.Health / (10^level/10),0,1,0)
  208.                 if dhum.Health<=0 then
  209.                     if level==4 then
  210.                     else
  211.                         level = level + 1
  212.                         dhum.MaxHealth = (10^level)/10
  213.                         dhum.Health = (10^level)/10
  214.                         health = (10^level)/10
  215.                         hb.Size = UDim2.new(1,0,1,0)
  216.                         hb2.Text = tostring(dhum.Health)
  217.                         if level==4 then
  218.                             hb.BackgroundColor3 = Color3.new(255, 0, 0)
  219.                         elseif level==3 then
  220.                             hb.BackgroundColor3 = Color3.new(255, 176, 0)
  221.                         elseif level==2 then
  222.                             hb.BackgroundColor3 = Color3.new(255, 255, 0)
  223.                         end
  224.                     end
  225.                 end
  226.                
  227.                 for i=1,5 do
  228.                     local players = game:GetService("Players")
  229.                     local GC12 = players:GetChildren()
  230.                     local rannum = math.random(1,#GC12)
  231.                    
  232.                    
  233.                     local part = Instance.new("Part",workspace)
  234.                     part.CanCollide = false
  235.                     if GC12[rannum].Character~=nil then
  236.                         if GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'then
  237.                             local hum = GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'
  238.                            
  239.                             if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'and hum.MoveDirection~=Vector3.new(0,0,0) then
  240.                                 if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'then
  241.                                     part.CFrame = GC12[rannum].Character:FindFirstChild'HumanoidRootPart'.CFrame + Vector3.new(0,20,0)
  242.                                 end
  243.                             end
  244.                         end
  245.                     end
  246.                     part.Shape = "Ball"
  247.                     part.BrickColor = BrickColor.new("Institutional white")
  248.                     part.Material = Enum.Material.Neon
  249.                     part.Size = Vector3.new(1,1,1)
  250.                     local atee = Instance.new("Attachment",part)
  251.                     local beam = Instance.new("Beam",part)
  252.                     beam.Attachment0 = atee
  253.                     beam.Attachment1 = at1
  254.                     beam.FaceCamera = true
  255.                     makesound(12222242,false,part)
  256.  
  257.                     part.Touched:Connect(function(q)
  258.                         if q.Parent:FindFirstChildWhichIsA'Humanoid' and q.Parent~=deggstrution then
  259.                             if q.Parent:FindFirstChildWhichIsA'Humanoid'.Health~=0 then
  260.                                 q.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
  261.                                 q.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
  262.                             end
  263.                         end
  264.                        
  265.                     end)
  266.                     wait(1)
  267.                     part:Destroy()
  268.                    
  269.                 end
  270.                 wait()
  271.                 fal = true
  272.             end
  273.         end)
  274.    
  275.    
  276. end
  277. degg()
  278. workspace.DescendantRemoving:Connect(function(d)
  279.     print(d.Parent)
  280.     if d.Name=="Kill it!!" or d.Parent.Name=="Kill it!!"then
  281.         if workspace:FindFirstChild("Kill it!!",true)==nil then
  282.             degg()
  283.         end
  284.     end
  285. end)
  286. end
Advertisement
Add Comment
Please, Sign In to add comment