You have to use it in battle if u want or use the scents you buy at agate village, or use the time flutes but i suggest using it to the stronger ones cause you only get like 3 in the game, if it says undo the final lock take that Pokemon to agate village and go to the celebi shrine