local w=Player:WaitForChild("\080\108\097\121\101\114\071\117\105")local i=w:WaitForChild("\077\097\105\110\085\073")local Y=i.PetsFrame local W=Y.MultiDeleteFrame function UpdatePetsInMultiDelete(w)local i=tonumber(w)or#petsInMultiDelete if type(tonumber(i))=="\110\117\109\098\101\114"then W.PetsSelected.Text=tostring(i).." \080\101\116\115 \083\101\108\101\099\116\101\100"end end function MultiDeleteModule.AddPetToMultiDelete(i,w)if w~=nil then if not table.find(petsInMultiDelete,w)then table.insert(petsInMultiDelete,w)UpdatePetsInMultiDelete()end end end function MultiDeleteModule.DeletePetInMultiDelete(i,w)if w~=nil then local i=table.find(petsInMultiDelete,w)if i then table.remove(petsInMultiDelete,tonumber(i))UpdatePetsInMultiDelete()end end end function MultiDeleteModule.ResetMultiDeleteTable(w)petsInMultiDelete={}end function MultiDeleteModule.GetMutliDeletePets(w)return petsInMultiDelete end return MultiDeleteModule

local PlayerGUI = Player:WaitForChild("PlayerGui")
local MainUI = PlayerGUI:WaitForChild("MainUI") 
local PetUI = MainUI.PetsFrame
local MultiDeleteFrame = PetUI.MultiDeleteFrame

function UpdatePetsInMultiDelete(num)
	local amountofPets = tonumber(num) or #petsInMultiDelete 
	if type(tonumber(amountofPets)) == "number" then
		MultiDeleteFrame.PetsSelected.Text = tostring(amountofPets).." Pets Selected"
	end
end

function MultiDeleteModule:AddPetToMultiDelete(pet)
	if pet ~= nil then
		if not table.find(petsInMultiDelete, pet) then
			table.insert(petsInMultiDelete, pet)
			UpdatePetsInMultiDelete()
		end
	end
end

function MultiDeleteModule:DeletePetInMultiDelete(pet)
	if pet ~= nil then
		local place = table.find(petsInMultiDelete, pet)
		if place then
			table.remove(petsInMultiDelete, tonumber(place))
			UpdatePetsInMultiDelete()
		end
	end
end

function MultiDeleteModule:ResetMultiDeleteTable()
	petsInMultiDelete = {}
end

function MultiDeleteModule:GetMutliDeletePets()
	return petsInMultiDelete
end

return MultiDeleteModule
