local M=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local L=require(M.Packages.ChainLink)local P=Instance.new("\070\111\108\100\101\114")P.Name="\077\097\112"for M,L in(script.Parent:WaitForChild("\065\115\115\101\116\115")):GetChildren()do if not string.match(L.Name,"\065\102\116\101\114\095")then L.Parent=P end end P.Parent=workspace L.RegisterDefaultActions()L.SetMapDirectory(function()return P end)L.Init()for M,L in(script.Parent:WaitForChild("\065\115\115\101\116\115")):GetChildren()do L.Parent=P end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChainLink = require(ReplicatedStorage.Packages.ChainLink)

local map = Instance.new("Folder")
map.Name = "Map"

for _, asset in script.Parent:WaitForChild("Assets"):GetChildren() do
	if not string.match(asset.Name, "After_") then
		asset.Parent = map
	end
end

map.Parent = workspace

ChainLink.RegisterDefaultActions()
ChainLink.SetMapDirectory(function()
	return map
end)
ChainLink.Init()

-- TODO: Test here

for _, asset in script.Parent:WaitForChild("Assets"):GetChildren() do
	asset.Parent = map
end

-- TODO: Test here
