How to make a replay system that interacts with scene objects?

Hello everyone!

I currently have a working replay system that every 10 seconds spawns a new ghost that repeats the player’s movement, pretty much like the cursor*10 game if that is familiar to you.

I want to make the ghosts able to interact with the boxes from around the player. So for example, if my player moves a box, i want the first ghost to also move it.

How can I achieve this?