A lot of factors could be at play for making your candy chewy instead or hard as desired. For example, the storage and room’s humidity levels could be factors, but another one is how you made the candy. If you didn’t allow the candy to get to the proper temperature before pouring into the pan or molds, the candy may not have reached the proper hard-ball stage needed to hold a hard texture once cooled.