To achieve a smooth texture, make sure your butter is at room temperature before mixing it with powdered sugar. Cream the butter first until it's light and fluffy, then gradually add the powdered sugar in small batches. Beat the mixture until smooth and creamy. If the frosting appears too thick, add a tablespoon of milk or cream at a time until you reach the desired consistency.