when sans traps you in an empty box,just be determined and wait,then a question block will appear if you answer no,you spared him
credits to tangomangostudios please keep atacking or sans will trap you on a box