Advertisement
InTesting

EGG (Fixing)

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