Worst thing you can do to yourself in gamedev is to get yourself stuck cause you think right way to do something
Is to do it as you would do it normally
Imagine mario game
Mario in collision with coin
Add 1 to coins variable delete coin
Seems simple and obvious
Mario dies and you don’t want to reset scene but bring back coins but how to do that?
There is a way to save their positions dynamically of course but
How about
Coin opacity = 255
Mario is in collision with coin
Add 1 to coin variable
Change opacity of coin set to 0
Mario dies and all you need to do is set coins opacity to 255
There goes your reset logic
I used 1 object to put other around it and then spin that object
In fact you can do exact same thing same way WITHOUT that object since there is same action to put objects around position