How can i make it so my weapon must swing thru a box to break it?

Show me a full screenshot of where the is_swinging boolean is being set to true or false.