It works, but the script only affects legal moves (the ones with highlights on the destination). I think you tried to move a Pawn from its starting position directly to the last rank, which isn't legal in an actual game, and so would not be affected by the script.
It works, but the script only affects legal moves (the ones with highlights on the destination). I think you tried to move a Pawn from its starting position directly to the last rank, which isn't legal in an actual game, and so would not be affected by the script.