script.Parent.MouseButton1Click:Connect(function()local l={}for E,O in pairs(script.Parent.Parent.Parent.Parent.MainFrame.Inventory:GetChildren())do if O:IsA("\070\114\097\109\101")and O.MassDeleteIndicator.Visible==true then l[#l+1]=O.PetID.Value end end game.ReplicatedStorage.RemoteEvents.PetActionRequest:InvokeServer("\077\097\115\115 \068\101\108\101\116\101",{Pets=l})script.Parent.Parent.Parent.MassDelete.Value=false script.Parent.Parent.Visible=false end)


script.Parent.MouseButton1Click:Connect(function()
	local v1 = {};
	for v2, v3 in pairs(script.Parent.Parent.Parent.Parent.MainFrame.Inventory:GetChildren()) do
		if v3:IsA("Frame") and v3.MassDeleteIndicator.Visible == true then
			v1[#v1 + 1] = v3.PetID.Value;
		end;
	end;
	game.ReplicatedStorage.RemoteEvents.PetActionRequest:InvokeServer("Mass Delete", {
		Pets = v1
	});
	script.Parent.Parent.Parent.MassDelete.Value = false;
	script.Parent.Parent.Visible = false;
end);
