Bring sugar, butter, and milk to a boil in a large saucepan. Boil for 2 minutes and remove from heat.
Stir in cocoa and vanilla. Stir in oats, walnuts, and coconut until well combined.
Drop tablespoonfuls onto waxed paper. Cool for 30 minutes before serving.
