Advertisement
NukeVsCity

comet

Apr 20th, 2023
1,039
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.90 KB | None | 0 0
  1. -- Decompiled with the Synapse X Luau decompiler.
  2.  
  3. local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
  4. while not v1.Loaded do
  5.     game:GetService("RunService").Heartbeat:Wait();
  6. end;
  7. function HasLanded(p1)
  8.     local v2 = p1 and p1.EndTime <= workspace:GetServerTimeNow() + 0.5;
  9.     return v2;
  10. end;
  11. function CometAnimation(p2)
  12.     if p2 then
  13.         if HasLanded(p2) then
  14.             return;
  15.         end;
  16.     else
  17.         return;
  18.     end;
  19.     animating = true;
  20.     local v3 = v1.Assets.Models.Comets:FindFirstChild(p2.Type):Clone();
  21.     local v4 = Instance.new("Model");
  22.     v3.Parent = v4;
  23.     v4.PrimaryPart = v3;
  24.     if p2.Type == "Massive Comet" then
  25.         v1.Functions.Scaler()(v4, 3);
  26.     end;
  27.     p2.Model = v3;
  28.     local v5 = p2.EndPosition + Vector3.new(0, v3.Size.Y / 2 - v3.Size.Y / 3, 0);
  29.     local v6 = (p2.EndTime - workspace:GetServerTimeNow()) / p2.Speed;
  30.     local v7 = p2.StartPosition.Y - v5.Y;
  31.     v3.Position = v5 + Vector3.new(0, v7 * v6, v7 * 0.4663076581549986);
  32.     v3.Orientation = Vector3.new(25, 0, 0);
  33.     v4.Parent = v1.Things:WaitForChild("Comets");
  34.     p2.TravelTween = v1.TweenService:Create(v3, TweenInfo.new(p2.Speed * v6, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0), {
  35.         Position = v5
  36.     });
  37.     p2.TravelTween:Play();
  38.     p2.TravelTween.Completed:Connect(function(p3)
  39.         if p3 == Enum.PlaybackState.Cancelled then
  40.             return;
  41.         end;
  42.         v3.Transparency = 1;
  43.         v1.Functions.AddDebris(v3, 5);
  44.         local v8, v9, v10 = pairs(v3:GetChildren());
  45.         while true do
  46.             local v11, v12 = v8(v9, v10);
  47.             if v11 then
  48.  
  49.             else
  50.                 break;
  51.             end;
  52.             v10 = v11;
  53.             if v12.Name ~= "Explosion" then
  54.                 v12:Destroy();
  55.             end;       
  56.         end;
  57.         local v13, v14, v15 = pairs(v3:FindFirstChild("Explosion"):GetChildren());
  58.         while true do
  59.             local v16, v17 = v13(v14, v15);
  60.             if v16 then
  61.  
  62.             else
  63.                 break;
  64.             end;
  65.             v15 = v16;
  66.             v17:Emit(v17:GetAttribute("EmitCount") and 1);     
  67.         end;
  68.         animating = false;
  69.         if p2.Coin then
  70.             v1.Signal.Fire("Comets: Setup Breakable", p2.CoinId, p2.Coin);
  71.         end;
  72.         local v18 = v1.Save.Get();
  73.         if v18 then
  74.             if p2.Type == "Massive Comet" then
  75.                 if v18.World == p2.WorldId then
  76.                     v1.Shake.Create(2, 1, 0.3);
  77.                     local v19 = v1.Audio.Play("rbxassetid://12669914523", v3, 1, 0.6);
  78.                     v19.RollOffMaxDistance = 800;
  79.                     v19.RollOffMinDistance = 300;
  80.                     p2.LandSound = true;
  81.                     return;
  82.                 end;
  83.             end;
  84.             if p2.Type == "Mini Comet" then
  85.                 if v18.World == p2.WorldId then
  86.                     v1.Shake.Create(1, 0.3, 0.3);
  87.                     local v20 = v1.Audio.Play("rbxassetid://12669914204", v3, 1, 0.4);
  88.                     v20.RollOffMaxDistance = 500;
  89.                     v20.RollOffMinDistance = 200;
  90.                 end;
  91.             end;
  92.         end;
  93.     end);
  94. end;
  95. function CancelAnimation(p4)
  96.     animating = false;
  97.     if not p4 then
  98.         return;
  99.     end;
  100.     if p4.Model then
  101.         p4.Model:Destroy();
  102.         p4.Model = nil;
  103.     end;
  104.     if p4.TravelTween then
  105.         p4.TravelTween:Cancel();
  106.         p4.TravelTween = nil;
  107.     end;
  108. end;
  109. function RemoveBroken(p5)
  110.     if not p5 then
  111.         return;
  112.     end;
  113.     if p5.BrokenModel then
  114.         p5.BrokenModel:Destroy();
  115.         p5.BrokenModel = nil;
  116.     end;
  117.     if p5.Egg then
  118.         p5.Egg:Destroy();
  119.         p5.Egg = nil;
  120.     end;
  121. end;
  122. local u1 = {};
  123. function SpawnComet(p6, p7)
  124.     local v21 = {
  125.         Id = p6.Id,
  126.         Type = p6.Type,
  127.         WorldId = p6.WorldId,
  128.         AreaId = p6.AreaId,
  129.         CoinId = p6.CoinId,
  130.         StartPosition = p6.SpawnPosition,
  131.         EndPosition = p6.EndPosition,
  132.         Speed = p6.Speed,
  133.         EndTime = p6.EndTime,
  134.         Destroyed = p6.Destroyed,
  135.         Opened = p7
  136.     };
  137.     u1[v21.Id] = v21;
  138.     local v22 = v1.Save.Get();
  139.     if not v22 then
  140.         return;
  141.     end;
  142.     if v21.Type == "Massive Comet" then
  143.         if not HasLanded(v21) then
  144.             local v23 = v21.Speed * ((v21.EndTime - workspace:GetServerTimeNow()) / v21.Speed);
  145.             local v24 = v1.Directory.Areas[v21.AreaId];
  146.             v1.Signal.Fire("Notification", "A Massive Comet is landing in " .. v24.name .. "!", {
  147.                 color = Color3.fromRGB(0, 170, 255),
  148.                 force = true
  149.             });
  150.             v1.ChatMsg.New("A Massive Comet is landing in " .. v24.name .. "!", Color3.fromRGB(0, 170, 255));
  151.             v1.Shake.Create(v23, 0.1, 0.3, true);
  152.         elseif v21.Type == "Mini Comet" then
  153.             if not HasLanded(v21) then
  154.                 local v25 = (v21.EndTime - workspace:GetServerTimeNow()) / v21.Speed;
  155.                 local v26 = v1.Directory.Areas[v21.AreaId];
  156.                 v1.Signal.Fire("Notification", "A Mini Comet is landing in " .. v26.name .. "!", {
  157.                     color = Color3.fromRGB(0, 170, 255),
  158.                     force = true
  159.                 });
  160.                 v1.ChatMsg.New("A Mini Comet is landing in " .. v26.name .. "!", Color3.fromRGB(0, 170, 255));
  161.             end;
  162.         end;
  163.     elseif v21.Type == "Mini Comet" then
  164.         if not HasLanded(v21) then
  165.             v25 = (v21.EndTime - workspace:GetServerTimeNow()) / v21.Speed;
  166.             v26 = v1.Directory.Areas[v21.AreaId];
  167.             v1.Signal.Fire("Notification", "A Mini Comet is landing in " .. v26.name .. "!", {
  168.                 color = Color3.fromRGB(0, 170, 255),
  169.                 force = true
  170.             });
  171.             v1.ChatMsg.New("A Mini Comet is landing in " .. v26.name .. "!", Color3.fromRGB(0, 170, 255));
  172.         end;
  173.     end;
  174.     if v22.World == v21.WorldId then
  175.         if not v21.Destroyed then
  176.             CometAnimation(v21);
  177.         end;
  178.     end;
  179. end;
  180. function SetupCometEgg(p8)
  181.     if p8 then
  182.         if not p8.Coin then
  183.             return;
  184.         end;
  185.     else
  186.         return;
  187.     end;
  188.     p8.Destroyed = true;
  189.     local v27 = v1.Assets.Models.Comets:WaitForChild("Massive Comet Broken"):Clone();
  190.     v1.Functions.Scaler()(v27, 4);
  191.     v27.CFrame = p8.Coin.CFrame - Vector3.new(0, v27.Size.Y / 6, 0);
  192.     v27.Parent = v1.Things:WaitForChild("Comets");
  193.     p8.BrokenModel = v27;
  194.     local v28 = v1.Audio.Play("rbxassetid://12669914691", v27, 1, 0.2, nil, nil, true);
  195.     v28.RollOffMaxDistance = 300;
  196.     v28.RollOffMinDistance = 100;
  197.     if not p8.Opened then
  198.         local v29 = v1.Assets.Models.Comets:WaitForChild("Comet Egg"):Clone();
  199.         v29:SetPrimaryPartCFrame(CFrame.new(v27.Position + Vector3.new(0, v27.Size.Y / 4, 0)) * CFrame.Angles(0, 0, 1.5707963267948966));
  200.         v29.Parent = v1.Things:WaitForChild("Comets");
  201.         p8.Egg = v29;
  202.         SetupEgg(p8);
  203.     end;
  204. end;
  205. function RequestData()
  206.     local v30, v31 = v1.Network.Invoke("Comets: Get Data");
  207.     local v32, v33, v34 = pairs(v30);
  208.     while true do
  209.         local v35, v36 = v32(v33, v34);
  210.         if v35 then
  211.  
  212.         else
  213.             break;
  214.         end;
  215.         v34 = v35;
  216.         SpawnComet(v36, v31[v36.Id][v1.LocalPlayer.UserId]);   
  217.     end;
  218. end;
  219. function GetCometByCoinId(p9)
  220.     local v37, v38, v39 = pairs(u1);
  221.     while true do
  222.         local v40, v41 = v37(v38, v39);
  223.         if v40 then
  224.  
  225.         else
  226.             break;
  227.         end;
  228.         v39 = v40;
  229.         if v41.CoinId == p9 then
  230.             return v41;
  231.         end;   
  232.     end;
  233.     return nil;
  234. end;
  235. v1.Network.Fired("Comets: Announcement"):Connect(function(p10, p11)
  236.     local v42 = v1.Directory.Areas[p10];
  237.     v1.Signal.Fire("Notification", "A Massive Comet will land in " .. v42.name .. " in " .. v1.Functions.FormatTimeShort(p11, false) .. "!", {
  238.         color = Color3.fromRGB(0, 170, 255),
  239.         force = true
  240.     });
  241.     v1.ChatMsg.New("A Massive Comet will land in " .. v42.name .. " in " .. v1.Functions.FormatTimeShort(p11, false) .. "!", Color3.fromRGB(0, 170, 255));
  242.     v1.Shake.Create(5, 0.25, 0.15, true);
  243.     v1.Audio.Play("rbxassetid://12669908963", script, 1, 0.2);
  244. end);
  245. v1.Network.Fired("Comets: Spawn Client"):Connect(function(p12)
  246.     SpawnComet(p12, false);
  247. end);
  248. v1.Network.Fired("Comets: Massive Broken"):Connect(function(p13)
  249.     local v43 = u1[p13];
  250.     if not v43 or not v43.Coin then
  251.         return;
  252.     end;
  253.     SetupCometEgg(v43);
  254.     v1.Shake.Create(2, 1, 0.3);
  255.     local v44 = v1.Audio.Play("rbxassetid://12669914084", v43.BrokenModel, 1, 0.6);
  256.     v44.RollOffMaxDistance = 800;
  257.     v44.RollOffMinDistance = 300;
  258. end);
  259. v1.Network.Fired("Comets: Removed"):Connect(function(p14)
  260.     local v45 = u1[p14];
  261.     if not v45 then
  262.         return;
  263.     end;
  264.     if v45.Model then
  265.         v1.WorldFX.CometDespawn(v45.Model.Position);
  266.         v45.Model:Destroy();
  267.     end;
  268.     if v45.TravelTween then
  269.         v45.TravelTween:Cancel();
  270.     end;
  271.     if v45.Egg then
  272.         v45.Egg:Destroy();
  273.     end;
  274.     if v45.BrokenModel then
  275.         v1.WorldFX.CometDespawn(v45.BrokenModel.Position);
  276.         v45.BrokenModel:Destroy();
  277.     end;
  278.     u1[p14] = nil;
  279. end);
  280. v1.Signal.Invoked("Comets: Landed").OnInvoke = function(p15)
  281.     local v46 = GetCometByCoinId(p15);
  282.     if not v46 then
  283.         return nil;
  284.     end;
  285.     return HasLanded(v46);
  286. end;
  287. v1.Signal.Fired("World Changed"):Connect(function(p16)
  288.     for v47, v48 in pairs(u1) do
  289.         if v48.WorldId == p16 then
  290.             if not animating then
  291.                 CometAnimation(v48);
  292.             end;
  293.             if v48.Destroyed then
  294.                 SetupCometEgg(v48);
  295.             end;
  296.         else
  297.             if animating then
  298.                 CancelAnimation(v48);
  299.             end;
  300.             if v48.Destroyed then
  301.                 RemoveBroken(v48);
  302.             end;
  303.         end;
  304.     end;
  305. end);
  306. v1.Signal.Fired("Comets: Setup Breakable"):Connect(function(p17, p18)
  307.     local v49 = GetCometByCoinId(p17);
  308.     if not v49 then
  309.         return;
  310.     end;
  311.     local v50 = HasLanded(v49);
  312.     if v50 then
  313.         local v51 = 0;
  314.     else
  315.         v51 = 1;
  316.     end;
  317.     p18.Transparency = v51;
  318.     for v52, v53 in pairs(p18:WaitForChild("Attachment"):GetChildren()) do
  319.         v53.Enabled = v50;
  320.     end;
  321.     p18:SetAttribute("PreventClick", not v50);
  322.     local l__ClickDetector__54 = p18:FindFirstChild("ClickDetector");
  323.     if l__ClickDetector__54 then
  324.         l__ClickDetector__54.MaxActivationDistance = v50 and v1.Settings.CoinGrabDistance or 0;
  325.     end;
  326.     v49.Coin = p18;
  327.     local v55 = v1.Audio.Play("rbxassetid://12669914691", p18, 1, 0.2, nil, nil, true);
  328.     v55.RollOffMaxDistance = 300;
  329.     v55.RollOffMinDistance = 100;
  330. end);
  331. task.spawn(RequestData);
  332. local u2 = {};
  333. local u3 = false;
  334. function SetupEgg(p19)
  335.     if p19 then
  336.         if not p19.Egg then
  337.             return;
  338.         end;
  339.     else
  340.         return;
  341.     end;
  342.     local l__Egg__56 = p19.Egg.Egg;
  343.     local v57, v58 = v1.Interact.Add(l__Egg__56.CFrame.p, {
  344.         label = "Collect",
  345.         dist = 20
  346.     });
  347.     table.insert(u2, v58);
  348.     v57:Connect(function()
  349.         if not u3 then
  350.             u3 = true;
  351.             local v59, v60 = v1.Network.Invoke("Comets: Open Egg", p19.Id);
  352.             if not v59 then
  353.                 if v60 then
  354.                     v1.Message.New(v60);
  355.                     u3 = false;
  356.                     return;
  357.                 end;
  358.             end;
  359.             p19.Opened = true;
  360.             p19.Egg:Destroy();
  361.             local v61, v62, v63 = ipairs(u2);
  362.             while true do
  363.                 v61(v62, v63);
  364.                 if v61 then
  365.  
  366.                 else
  367.                     break;
  368.                 end;
  369.                 v63 = v61;
  370.                 v62();         
  371.             end;
  372.             u2 = {};
  373.             u3 = false;
  374.         end;
  375.     end);
  376.     local u4 = Random.new();
  377.     coroutine.wrap(function()
  378.         local l__CFrame__64 = l__Egg__56.CFrame;
  379.         local v65 = u4:NextNumber(1, 10);
  380.         local v66 = os.clock();
  381.         local v67 = nil;
  382.         while true do
  383.             if l__Egg__56 then
  384.  
  385.             else
  386.                 break;
  387.             end;
  388.             if l__Egg__56.Parent then
  389.  
  390.             else
  391.                 break;
  392.             end;
  393.             if v67 then
  394.                 if 2 <= os.clock() - v67 then
  395.                     local v68 = v1.LocalPlayer:DistanceFromCharacter(l__Egg__56.CFrame.p);
  396.                     if 300 <= v68 then
  397.                         wait((math.clamp(v68 / 600, 0.5, 3)));
  398.                     else
  399.                         v67 = os.clock();
  400.                     end;
  401.                 end;
  402.             else
  403.                 v68 = v1.LocalPlayer:DistanceFromCharacter(l__Egg__56.CFrame.p);
  404.                 if 300 <= v68 then
  405.                     wait((math.clamp(v68 / 600, 0.5, 3)));
  406.                 else
  407.                     v67 = os.clock();
  408.                 end;
  409.             end;
  410.             local v69 = os.clock() - v66 + v65;
  411.             l__Egg__56.CFrame = l__CFrame__64 * CFrame.new(0, math.sin(v69 * 1) / 2, 0) * CFrame.Angles(0, v69, 0);
  412.             v1.RenderStepped();    
  413.         end;
  414.     end)();
  415.     local u5 = false;
  416.     local function u6()
  417.         local v70 = v1.Directory.Eggs["Comet Egg"];
  418.         local v71 = v1.Assets.Billboards.EggInfo:Clone();
  419.         local v72 = v70.drops;
  420.         local l__isGolden__73 = v70.isGolden;
  421.         local v74 = v1.Save.Get();
  422.         if type(v72) == "string" then
  423.             v72 = v1.Directory.Eggs[v72].drops;
  424.         end;
  425.         local v75, v76, v77 = ipairs(v72);
  426.         while true do
  427.             v75(v76, v77);
  428.             if v75 then
  429.  
  430.             else
  431.                 break;
  432.             end;
  433.             v77 = v75;
  434.             local v78 = v76[1];
  435.             local v79 = v1.Directory.Pets[v78];
  436.             local l__rarity__80 = v79.rarity;
  437.             if l__rarity__80 ~= "Secret" then
  438.                 if v76[3] then
  439.                     if v1.Shared.IsHardcore then
  440.                         local v81 = v1.Assets.UI.EggInfo.Pet:Clone();
  441.                         v81:SetAttribute("PetId", v78);
  442.                         local v82 = 0;
  443.                         local v83, v84, v85 = ipairs(v72);
  444.                         while true do
  445.                             v83(v84, v85);
  446.                             if v83 then
  447.  
  448.                             else
  449.                                 break;
  450.                             end;
  451.                             v85 = v83;
  452.                             v82 = v82 + v84[2];                    
  453.                         end;
  454.                         local v86 = v76[2] / v82 * 100;
  455.                         v81.Thumbnail.Image = l__isGolden__73 and v79.goldenThumbnail or v79.thumbnail;
  456.                         v81.LayoutOrder = 9999 - v86;
  457.                         if v74.AutoDelete[v79.rarity] then
  458.                             v81.DeleteImage.Visible = true;
  459.                         else
  460.                             v81.DeleteImage.Visible = false;
  461.                         end;
  462.                         if l__rarity__80 ~= "Legendary" then
  463.                             if l__rarity__80 ~= "Mythical" then
  464.                                 if l__rarity__80 ~= "Event" then
  465.                                     if l__rarity__80 ~= "Exclusive" then
  466.                                         if v86 <= 0.0099 then
  467.                                             v81.Thumbnail.Chance.Text = "??";
  468.                                             v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  469.                                         else
  470.                                             local v87, v88, v89 = Color3.toHSV((Color3.fromRGB(49, 255, 39):Lerp(Color3.fromRGB(255, 75, 39), (math.clamp(94.2467 * math.pow(0.9315, v86) / 100, 0, 1)))));
  471.                                             v81.Thumbnail.Chance.TextColor3 = Color3.fromHSV(v87, v88, v89 * 2);
  472.                                             v81.Thumbnail.Chance.Text = v1.Functions.FormatChance(v86 / 100);
  473.                                         end;
  474.                                     else
  475.                                         v81.Thumbnail.Chance.Text = "??";
  476.                                         v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  477.                                     end;
  478.                                 else
  479.                                     v81.Thumbnail.Chance.Text = "??";
  480.                                     v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  481.                                 end;
  482.                             else
  483.                                 v81.Thumbnail.Chance.Text = "??";
  484.                                 v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  485.                             end;
  486.                         else
  487.                             v81.Thumbnail.Chance.Text = "??";
  488.                             v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  489.                         end;
  490.                         if v79.titanic then
  491.                             v81.TitanicCrown.Visible = true;
  492.                         end;
  493.                         v81.Thumbnail.Position = UDim2.new(0, 0, 1, 0);
  494.                         v81.Thumbnail.ImageTransparency = 1;
  495.                         v1.Functions.Tween(v81.Thumbnail, {
  496.                             Position = UDim2.new(0, 0, 0, 0),
  497.                             ImageTransparency = 0
  498.                         }, { 0.45 + v75 / 9 / 3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out });
  499.                         v81.Parent = v71.Frame.Pets;
  500.                     end;
  501.                 else
  502.                     v81 = v1.Assets.UI.EggInfo.Pet:Clone();
  503.                     v81:SetAttribute("PetId", v78);
  504.                     v82 = 0;
  505.                     v83, v84, v85 = ipairs(v72);
  506.                     while true do
  507.                         v83(v84, v85);
  508.                         if v83 then
  509.  
  510.                         else
  511.                             break;
  512.                         end;
  513.                         v85 = v83;
  514.                         v82 = v82 + v84[2];                
  515.                     end;
  516.                     v86 = v76[2] / v82 * 100;
  517.                     v81.Thumbnail.Image = l__isGolden__73 and v79.goldenThumbnail or v79.thumbnail;
  518.                     v81.LayoutOrder = 9999 - v86;
  519.                     if v74.AutoDelete[v79.rarity] then
  520.                         v81.DeleteImage.Visible = true;
  521.                     else
  522.                         v81.DeleteImage.Visible = false;
  523.                     end;
  524.                     if l__rarity__80 ~= "Legendary" then
  525.                         if l__rarity__80 ~= "Mythical" then
  526.                             if l__rarity__80 ~= "Event" then
  527.                                 if l__rarity__80 ~= "Exclusive" then
  528.                                     if v86 <= 0.0099 then
  529.                                         v81.Thumbnail.Chance.Text = "??";
  530.                                         v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  531.                                     else
  532.                                         v87, v88, v89 = Color3.toHSV((Color3.fromRGB(49, 255, 39):Lerp(Color3.fromRGB(255, 75, 39), (math.clamp(94.2467 * math.pow(0.9315, v86) / 100, 0, 1)))));
  533.                                         v81.Thumbnail.Chance.TextColor3 = Color3.fromHSV(v87, v88, v89 * 2);
  534.                                         v81.Thumbnail.Chance.Text = v1.Functions.FormatChance(v86 / 100);
  535.                                     end;
  536.                                 else
  537.                                     v81.Thumbnail.Chance.Text = "??";
  538.                                     v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  539.                                 end;
  540.                             else
  541.                                 v81.Thumbnail.Chance.Text = "??";
  542.                                 v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  543.                             end;
  544.                         else
  545.                             v81.Thumbnail.Chance.Text = "??";
  546.                             v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  547.                         end;
  548.                     else
  549.                         v81.Thumbnail.Chance.Text = "??";
  550.                         v1.GUIFX.Rainbow(v81.Thumbnail.Chance, "TextColor3");
  551.                     end;
  552.                     if v79.titanic then
  553.                         v81.TitanicCrown.Visible = true;
  554.                     end;
  555.                     v81.Thumbnail.Position = UDim2.new(0, 0, 1, 0);
  556.                     v81.Thumbnail.ImageTransparency = 1;
  557.                     v1.Functions.Tween(v81.Thumbnail, {
  558.                         Position = UDim2.new(0, 0, 0, 0),
  559.                         ImageTransparency = 0
  560.                     }, { 0.45 + v75 / 9 / 3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out });
  561.                     v81.Parent = v71.Frame.Pets;
  562.                 end;
  563.             end;       
  564.         end;
  565.         v71.Size = UDim2.new(0, 0, 0, 0);
  566.         v71.StudsOffset = Vector3.new(0, 4, 0);
  567.         v1.Functions.Tween(v71, {
  568.             Size = UDim2.new(10, 0, 10, 0),
  569.             StudsOffset = Vector3.new(0, 10, 0)
  570.         }, { 0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out });
  571.         v71.Frame.Pets:FindFirstChild("UIGridLayout"):ApplyLayout();
  572.         v71.Parent = l__Egg__56;
  573.     end;
  574.     local function u7()
  575.         local l__EggInfo__90 = l__Egg__56:FindFirstChild("EggInfo");
  576.         if l__EggInfo__90 then
  577.             v1.Functions.Tween(l__EggInfo__90, {
  578.                 Size = UDim2.new(0, 0, 0, 0),
  579.                 StudsOffset = Vector3.new(0, 4, 0)
  580.             }, { 0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.In }).Completed:Connect(function()
  581.                 l__EggInfo__90:Destroy();
  582.             end);
  583.         end;
  584.     end;
  585.     coroutine.wrap(function()
  586.         local v91 = v1.Save.Get();
  587.         while true do
  588.             if p19.Egg then
  589.  
  590.             else
  591.                 break;
  592.             end;
  593.             if p19.Egg.Parent then
  594.  
  595.             else
  596.                 break;
  597.             end;
  598.             if p19.Egg:FindFirstChild("Egg") then
  599.  
  600.             else
  601.                 break;
  602.             end;
  603.             if l__Egg__56 then
  604.                 local v92 = v1.LocalPlayer:DistanceFromCharacter(l__Egg__56.CFrame.p) or 999;
  605.             else
  606.                 v92 = 999;
  607.             end;
  608.             local v93 = v92 <= 20;
  609.             local l__EggInfo__94 = l__Egg__56:FindFirstChild("EggInfo");
  610.             if v93 then
  611.                 if not u5 then
  612.                     u5 = true;
  613.                     u6();
  614.                 elseif u5 then
  615.                     if not v93 then
  616.                         u5 = false;
  617.                         u7();
  618.                     end;
  619.                 end;
  620.             elseif u5 then
  621.                 if not v93 then
  622.                     u5 = false;
  623.                     u7();
  624.                 end;
  625.             end;
  626.             v1.Heartbeat(5);       
  627.         end;
  628.     end)();
  629. end;
  630. task.spawn(function()
  631.     local u8 = 0;
  632.     v1.RunService.Heartbeat:Connect(function(p20)
  633.         u8 = u8 + p20;
  634.         if u8 > 1 then
  635.             u8 = u8 - 1;
  636.             for v95, v96 in pairs(u1) do
  637.                 if v96.Type == "Massive Comet" and not v96.LandSound and HasLanded(v96) then
  638.                     local v97 = v1.Save.Get();
  639.                     if v97 and v97.World ~= v96.WorldId then
  640.                         v96.LandSound = true;
  641.                         v1.Shake.Create(2, 0.2, 0.3);
  642.                         v1.Audio.Play("rbxassetid://12669913959", script, 1, 0.4);
  643.                     end;
  644.                 end;
  645.             end;
  646.         end;
  647.     end);
  648. end);
  649.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement