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

