Map reset system

Hello so I am trying to create a minigame and I want to reset the map after every game automatically I was thinking about using storage to store block locations with IDs and avoid using ray casting, is there actually any way of doing this ?
Continue to help post