Progress Bar Question

Hi, I’ve been looking for a tutorial on how to make a progress bar which shows the player how close they are to the end of the level.
But every tutorial i seem to find when i type in progress bar is about health bars, please help.

What variable constitutes “progress” in the level, do they have a certain amount of objects they have to collect, is there a time limit, or is it their physical distance to the end of the level? etc.
How you would do a progress bar will depend on what actually governs how close they are to the end of your level.

pretty basic progress is would probably be distance to end-zone (endzonelocation-playerlocaion->vectorlength