-- Decompiled with the Synapse X Luau decompiler.


local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait();
end;
local u1 = Random.new();
function CreatePet()
	local v2 = v1.Save.Get();
	if not v2 then
		return;
	end;
	local l__Pets__3 = v2.Pets;
	if #l__Pets__3 <= 0 then
		return;
	end;
	local v4 = l__Pets__3[u1:NextInteger(1, #l__Pets__3)];
	local v5 = v1.Directory.Pets[v4.id];
	local v6 = script.petFrame:Clone();
	v6.pet.Image = v4.dm and v5.darkMatterThumbnail or (v4.g and v5.goldenThumbnail or v5.thumbnail);
	if v4.r then
		v1.GUIFX.Rainbow(v6.pet, "ImageColor3", 3);
	end;
	v6.Position = UDim2.new(-1, 0, 0, 0);
	v6.Parent = script.Parent;
	v1.Functions.FastTween(v6, {
		Position = UDim2.new(1, 0, 0, 0)
	}, { 10, "Linear" }).Completed:Connect(function()
		v6:Destroy();
	end);
	coroutine.wrap(function()
		while true do
			if v6 then

			else
				break;
			end;
			if v6.Parent then

			else
				break;
			end;
			v1.Functions.FastTween(v6.pet, {
				Position = UDim2.new(0, 0, 0.2, 0)
			}, { 1, "Sine", "InOut" }).Completed:Wait();
			v1.Functions.FastTween(v6.pet, {
				Position = UDim2.new(0, 0, 0, 0)
			}, { 1, "Sine", "InOut" }).Completed:Wait();		
		end;
	end)();
end;
while true do
	CreatePet();
	v1.Functions.Wait(1);
end;
