change actor when colliding with another actor (resolved)

Hello, it’s me again. just one last question? How do you make it return to its previous state in a certain x seconds, that is, for example, the coin returns to the box?