local O=require(script.Parent.Watcher)local z local function b(i)local X=(loadstring(i.Source))()O.removeAll()for z,b in ipairs(X)do O.addInstance(b)end local y=i:GetPropertyChangedSignal("\083\111\117\114\099\101")if z then z:Disconnect()end z=y:Connect(function()b(i)end)end return b
local Watcher = require(script.Parent.Watcher)

local connection

local function updateDirectories(directoriesModule)
    local directories = loadstring(directoriesModule.Source)()

    Watcher.removeAll()

    for _, instance in ipairs(directories) do
        Watcher.addInstance(instance)
    end

    local sourceEvent = directoriesModule:GetPropertyChangedSignal("Source")

    if connection then
        connection:Disconnect()
    end

    connection =
        sourceEvent:Connect(
        function()
            updateDirectories(directoriesModule)
        end
    )
end

return updateDirectories
