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

	if oldTask == newTask then
		return
	end

	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
