How would I get a TileMap, then set a different TileMap to the first TileMap?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mr. Gamezz

I am attempting to make a mining game. I have a simple save and load system made so that you can save your hearts. I am attempting to save the tiles and load them back in after ward. For example,

var placeholder = $TileMap.get_tiles()