Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- local function degg()
- local function makesound(id,loop,parent)
- local sound = Instance.new("Sound",parent)
- sound.Looped = loop
- sound.Volume = 4
- sound.SoundId = "rbxassetid://"..id
- sound:Play()
- end
- local deggstrution = Instance.new("Model",workspace)
- deggstrution.Name = "Kill it!!"
- local Head = Instance.new("Part",deggstrution)
- Head.Name = "Head"
- Head.Material = Enum.Material.ForceField
- Head.BrickColor = BrickColor.new("Institutional white")
- Head.Size = Vector3.new(2, 2.4, 2)
- Head.Position = Vector3.new(5,0,0)
- local db = true
- local val = Instance.new("StringValue")
- val.Value="lolno"
- makesound(1530295588,true,Head)
- local at1 = Instance.new("Attachment",Head)
- at1.Orientation = Vector3.new(-0, 180, 90)
- local p1 = Instance.new("Part",workspace)
- p1.Anchored = true
- p1.CanCollide = false
- p1.Transparency = 1
- local at2 = Instance.new("Attachment",p1)
- at2.Orientation = Vector3.new(0, 0, 90)
- local ao = Instance.new("AlignOrientation",Head)
- ao.Attachment0 = at2
- ao.Attachment1 = at1
- ao.PrimaryAxisOnly = true
- ao.ReactionTorqueEnabled = true
- local mes = Instance.new("SpecialMesh",Head)
- mes.MeshType = Enum.MeshType.FileMesh
- mes.MeshId = "rbxassetid://1527559"
- local BG = Instance.new("BillboardGui",Head)
- BG.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
- BG.MaxDistance = 100
- BG.Size = UDim2.new(10,0,2,0)
- local hb = Instance.new("TextLabel",BG)
- hb.AnchorPoint = Vector2.new(0,.5)
- hb.BackgroundColor3 = Color3.new(0, 255, 0)
- hb.BorderColor3 = Color3.new(0,0,0)
- hb.BorderSizePixel = 10
- hb.Position = UDim2.new(0, 0,0.5, 0)
- hb.Size = UDim2.new(1, 0,1, 0)
- hb.Text = ''
- local BG2 = Instance.new("BillboardGui",Head)
- BG2.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
- BG2.MaxDistance = 100
- BG2.Size = UDim2.new(10,0,2,0)
- local hb2 = Instance.new("TextLabel",BG2)
- hb2.AnchorPoint = Vector2.new(0.5, 0.5)
- hb2.BackgroundTransparency = 1
- hb2.BorderColor3 = Color3.new(0,0,0)
- hb2.BorderSizePixel = 0
- hb2.Position = UDim2.new(0.5, 0,0.5, 0)
- hb2.Size = UDim2.new({1, 0},{1, 0})
- hb2.Text = '1'
- hb2.TextStrokeTransparency = 0
- hb2.Font = Enum.Font.SciFi
- hb2.TextScaled = true
- hb2.TextColor3 = Color3.new(255, 255, 255)
- hb2.Size = UDim2.new(1, 0,1, 0)
- local BG3 = Instance.new("BillboardGui",Head)
- BG3.ExtentsOffsetWorldSpace = Vector3.new(0, 7.5, 0)
- BG3.MaxDistance = 100
- BG3.Size = UDim2.new(10,0,2,0)
- local hb3 = Instance.new("TextLabel",BG3)
- hb3.AnchorPoint = Vector2.new(0.5, 0.5)
- hb3.BackgroundTransparency = 1
- hb3.BorderColor3 = Color3.new(0,0,0)
- hb3.BorderSizePixel = 0
- hb3.Position = UDim2.new(0.5, 0,0.5, 0)
- hb3.Size = UDim2.new({1, 0},{1, 0})
- hb3.Font = Enum.Font.SciFi
- hb3.TextScaled = true
- hb3.TextColor3 = Color3.new(0, 0, 255)
- hb3.Size = UDim2.new(1, 0,1, 0)
- hb3.Text = "[ BOSS! ] === Defender Egg ==="
- local level = 1
- local dhum = Instance.new("Humanoid",deggstrution)
- local fal = true
- dhum.Health = 1^level
- dhum.MaxHealth = 1^level
- local health = 1
- for i=1,10 do
- local players = game:GetService("Players")
- local GC12 = players:GetChildren()
- local rannum = math.random(1,#GC12)
- local part = Instance.new("Part",workspace)
- part.CanCollide = false
- if GC12[rannum].Character~=nil then
- if GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'then
- local hum = GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'
- if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'and hum.MoveDirection~=Vector3.new(0,0,0) then
- part.CFrame = GC12[rannum].Character:FindFirstChild'HumanoidRootPart'.CFrame + Vector3.new(0,20,0)
- end
- end
- end
- part.Shape = "Ball"
- part.BrickColor = BrickColor.new("Institutional white")
- part.Material = Enum.Material.Neon
- part.Size = Vector3.new(1,1,1)
- local atee = Instance.new("Attachment",part)
- local beam = Instance.new("Beam",part)
- beam.Attachment0 = atee
- beam.Attachment1 = at1
- beam.FaceCamera = true
- part.Touched:Connect(function(q)
- if q.Parent:FindFirstChildWhichIsA'Humanoid' and q.Parent~=deggstrution then
- if q.Parent:FindFirstChildWhichIsA'Humanoid'.Health~=0 and q.Parent:FindFirstChildWhichIsA'Humanoid'.MoveDirection~=Vector3.new(0,0,0)then
- q.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
- q.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
- end
- end
- end)
- makesound(12222242,false,part)
- wait(1)
- part:Destroy()
- end
- Head.Touched:Connect(function(p)
- if p.Parent:FindFirstChildWhichIsA'Humanoid' and db and p.Parent~="=== Defender Egg ==="then
- db = false
- p.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
- p.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
- local ex = Instance.new("Explosion",workspace)
- ex.Position = Head.Position
- ex.BlastPressure = 10000000000000000
- ex.DestroyJointRadiusPercent = 0
- wait(1)
- ex:Destroy()
- db = true
- elseif db and p.Parent~="=== Defender Egg ==="then
- db = false
- for i=1,10 do
- local players = game:GetService("Players")
- local GC12 = players:GetChildren()
- local rannum = math.random(1,#GC12)
- local part = Instance.new("Part",workspace)
- part.CanCollide = false
- if GC12[rannum].Character~=nil then
- if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'then
- part.CFrame = GC12[rannum].Character:FindFirstChild'HumanoidRootPart'.CFrame + Vector3.new(0,20,0)
- end
- end
- part.Shape = "Ball"
- part.BrickColor = BrickColor.new("Institutional white")
- part.Material = Enum.Material.Neon
- part.Size = Vector3.new(1,1,1)
- local atee = Instance.new("Attachment",part)
- local beam = Instance.new("Beam",part)
- beam.Attachment0 = atee
- beam.Attachment1 = at1
- beam.FaceCamera = true
- part.Touched:Connect(function(q)
- if q.Parent:FindFirstChildWhichIsA'Humanoid' and q.Parent~=deggstrution then
- if q.Parent:FindFirstChildWhichIsA'Humanoid'.Health~=0 and q.Parent:FindFirstChildWhichIsA'Humanoid'.MoveDirection~=Vector3.new(0,0,0)then
- q.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
- q.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
- end
- end
- end)
- makesound(12222242,false,part)
- wait(1)
- part:Destroy()
- end
- wait(1)
- db = true
- end
- end)
- dhum.HealthChanged:Connect(function()
- if fal then
- fal = false
- health = health - 1
- hb2.Text = tostring(health)
- dhum.Health = health
- hb.Size = UDim2.new(dhum.Health / (10^level/10),0,1,0)
- if dhum.Health<=0 then
- if level==4 then
- else
- level = level + 1
- dhum.MaxHealth = (10^level)/10
- dhum.Health = (10^level)/10
- health = (10^level)/10
- hb.Size = UDim2.new(1,0,1,0)
- hb2.Text = tostring(dhum.Health)
- if level==4 then
- hb.BackgroundColor3 = Color3.new(255, 0, 0)
- elseif level==3 then
- hb.BackgroundColor3 = Color3.new(255, 176, 0)
- elseif level==2 then
- hb.BackgroundColor3 = Color3.new(255, 255, 0)
- end
- end
- end
- for i=1,5 do
- local players = game:GetService("Players")
- local GC12 = players:GetChildren()
- local rannum = math.random(1,#GC12)
- local part = Instance.new("Part",workspace)
- part.CanCollide = false
- if GC12[rannum].Character~=nil then
- if GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'then
- local hum = GC12[rannum].Character:FindFirstChildWhichIsA'Humanoid'
- if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'and hum.MoveDirection~=Vector3.new(0,0,0) then
- if GC12[rannum].Character:FindFirstChild'HumanoidRootPart'then
- part.CFrame = GC12[rannum].Character:FindFirstChild'HumanoidRootPart'.CFrame + Vector3.new(0,20,0)
- end
- end
- end
- end
- part.Shape = "Ball"
- part.BrickColor = BrickColor.new("Institutional white")
- part.Material = Enum.Material.Neon
- part.Size = Vector3.new(1,1,1)
- local atee = Instance.new("Attachment",part)
- local beam = Instance.new("Beam",part)
- beam.Attachment0 = atee
- beam.Attachment1 = at1
- beam.FaceCamera = true
- makesound(12222242,false,part)
- part.Touched:Connect(function(q)
- if q.Parent:FindFirstChildWhichIsA'Humanoid' and q.Parent~=deggstrution then
- if q.Parent:FindFirstChildWhichIsA'Humanoid'.Health~=0 then
- q.Parent:FindFirstChildWhichIsA'Humanoid':TakeDamage(5)
- q.Parent:FindFirstChildWhichIsA'Humanoid'.Sit = true
- end
- end
- end)
- wait(1)
- part:Destroy()
- end
- wait()
- fal = true
- end
- end)
- end
- degg()
- workspace.DescendantRemoving:Connect(function(d)
- print(d.Parent)
- if d.Name=="Kill it!!" or d.Parent.Name=="Kill it!!"then
- if workspace:FindFirstChild("Kill it!!",true)==nil then
- degg()
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment