The most common reason for no bake cookies not setting properly is because you didn't boil the cocoa, sugar, milk, and butter for long enough. The mixture must reach a rolling boil and be kept there for 1 minute. This will allow the mixture to bind together your cookie ingredients. It's easiest to set a timer once the mixture reaches a rolling boil.