The role of an attacker in football involves creating goal-scoring opportunities, making strategic runs, and contributing to offensive plays to break down the opposing team's defense.