Your Rice Krispie bars may get too hard if you cook your marshmallows for too long, OR if you press the coated cereal into the pan too firmly. For the best results, make sure to remove your marshmallows from the heat as soon as they melt, and use a light hand to press the bars into the pan.