function Maid.__newindex(i,U,F)if Maid[U]~=nil then error(("\'\037\115\' \105\115 \114\101\115\101\114\118\101\100"):format(tostring(U)),2)end local A=i._tasks local y=A[U]A[U]=F if y then if type(y)=="\102\117\110\099\116\105\111\110"then y()elseif typeof(y)=="\082\066\088\083\099\114\105\112\116\067\111\110\110\101\099\116\105\111\110"then y:Disconnect()elseif y.Destroy then y: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.Destroy then
			oldTask:Destroy()
		end
	end
end
