function Maid.__newindex(V,g,N)if Maid[g]~=nil then error(("\'\037\115\' \105\115 \114\101\115\101\114\118\101\100"):format(tostring(g)),2)end local m=V.Tasks local a=m[g]m[g]=N if a then if type(a)=="\102\117\110\099\116\105\111\110"then a()elseif typeof(a)=="\082\066\088\083\099\114\105\112\116\067\111\110\110\101\099\116\105\111\110"then a:disconnect()elseif a.disconnect then a:disconnect()elseif a.Destroy then a:Destroy()elseif a.destroy then a:destroy()end end end

function Maid:__newindex(Index, NewTask)
	if Maid[Index] ~= nil then
		error(("'%s' is reserved"):format(tostring(Index)), 2)
	end

	local Tasks = self.Tasks
	local OldTask = Tasks[Index]
	Tasks[Index] = NewTask

	if OldTask then
		if type(OldTask) == "function" then
			OldTask()
		elseif typeof(OldTask) == "RBXScriptConnection" then
			OldTask:disconnect()
		elseif OldTask.disconnect then
			OldTask:disconnect()
		elseif OldTask.Destroy then
			OldTask:Destroy()
		elseif OldTask.destroy then
			OldTask:destroy()
		end
	end
end
