You become invisible at the same time that an illusory double of you appears where you are standing. The double lasts for the duration, but the invisibility ends if you attack or cast a spell.
You can use your action to move your illusory double up to twice your speed and make it gesture, speak, and behave in whatever way you choose.