Complex sentence: The goalkeeper position is left unfilled until the ball approaches the goal, when the nearest player to the ball temporarily adopts the role of goalkeeper.
Split into simpler sentences: The goalkeeper position is left unfilled until the ball comes near the goal. At this point the nearest player to the ball will take on the role of goalkeeper.