How to make a progress bar increase as it gets closer to an object?

Sorry I tend to answer questions when I am away from my computer so I cant get to the unreal engine and create the solution the take a screenshot for you. Looks like @ThompsonN13 has a good screenshot and alternative solution for you.