How can i make overlay to move as charcters and then remove it?

The command is @overlay OVERLAY NAME clear