function Maid.DoCleaning(J)local F=J._Tasks for J,P in next,F do local T=typeof(P)local Z=T=="\116\097\098\108\101"if T=="\082\066\088\083\099\114\105\112\116\067\111\110\110\101\099\116\105\111\110"or Z and P.Disconnect then P:Disconnect()elseif T=="\073\110\115\116\097\110\099\101"or Z and P.Destroy then P:Destroy()else P()end F[J]=nil end end Maid.Disconnect=Maid.DoCleaning Maid.Destroy=Maid.DoCleaning

function Maid:DoCleaning()
	local Tasks = self._Tasks
	for Name, Task in next, Tasks do
		local Type = typeof(Task)
		local IsTable = Type == "table"
		if Type == "RBXScriptConnection" or IsTable and Task.Disconnect then
			Task:Disconnect()
		elseif Type == "Instance" or IsTable and Task.Destroy then
			Task:Destroy()
		else
			Task()
		end
		Tasks[Name] = nil
	end
end
Maid.Disconnect = Maid.DoCleaning
Maid.Destroy = Maid.DoCleaning
