add more water or powdered sugar until desired consistency is achieved.
I use the 10 second rule most of the time when piping icing onto cookies. I drag a spatula across the bowl of icing and the icing takes 10 seconds for the icing to completely cover over.