function MapManager.SaveMap(E)for E,S in ipairs(workspace:GetChildren())do if not S:IsA("\067\097\109\101\114\097")and(not S:IsA("\084\101\114\114\097\105\110")and not S:IsA("\070\111\108\100\101\114"))then local E=S:Clone()if E then E.Parent=MapSave end end end end function MapManager.ClearMap(E)for E,S in ipairs(workspace:GetChildren())do if not S:IsA("\067\097\109\101\114\097")and(not S:IsA("\084\101\114\114\097\105\110")and not S:IsA("\070\111\108\100\101\114"))then S:Destroy()end end end function MapManager.LoadMap(E)spawn(function()for E,S in ipairs(MapSave:GetChildren())do local c=S:Clone()c.Parent=workspace end end)end return MapManager


function MapManager:SaveMap()
	for _, child in ipairs(workspace:GetChildren()) do
		if not child:IsA('Camera') and not child:IsA('Terrain') and not child:IsA('Folder') then
			local copy = child:Clone()
			if copy then
				copy.Parent = MapSave
			end	
		end
	end
end

function MapManager:ClearMap()
	for _, child in ipairs(workspace:GetChildren()) do
		if not child:IsA('Camera') and not child:IsA('Terrain') and not child:IsA('Folder') then
			child:Destroy()
		end
	end
end

function MapManager:LoadMap()
	spawn(function()
		for _, child in ipairs(MapSave:GetChildren()) do
			local copy = child:Clone()
			copy.Parent = workspace
		end
	end)
end
	
return MapManager
