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


function MapManager:SaveMap()
	for _, child in ipairs(game.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(game.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 = game.Workspace
		end
	end)
end
	
return MapManager
