-- Decompiled with the Synapse X Luau decompiler.


local l__Pets__1 = game.Players.LocalPlayer:WaitForChild("Pets");
local l__Background__2 = script.Parent.Background;
l__Background__2.MouseButton1Click:Connect(function()
	local l__Value__3 = script.Parent.Parent.Parent.DefaultButtonColor.Value;
	local l__SideFrame__4 = script.Parent.Parent.Parent.Parent.SideFrame;
	if l__SideFrame__4.MassDelete.Value ~= false then
		if script.Parent.MassDeleteIndicator.Visible == false then
			script.Parent.MassDeleteIndicator.Visible = true;
			script.Parent.Background.BackgroundColor3 = script.Parent.Parent.Parent.MassDeleteButtonColor.Value;
			return;
		else
			script.Parent.MassDeleteIndicator.Visible = false;
			script.Parent.Background.BackgroundColor3 = l__Value__3;
			return;
		end;
	end;
	for v5, v6 in pairs(script.Parent.Parent:GetChildren()) do
		if v6:IsA("Frame") then
			v6.Background.BackgroundColor3 = l__Value__3;
		end;
	end;
	l__Background__2.BackgroundColor3 = script.Parent.Parent.Parent.SelectButtonColor.Value;
	l__SideFrame__4.PetID.Value = script.Parent.PetID.Value;
end);
