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

Alright I’ve done something similar for my own game, I’ve just posted an answer.