Stir sugar, cocoa, and flour in skillet. Add milk, stirring well with a wire whisk.
Add vanilla and butter. Cook until thickened, stirring constantly.