How to make a progress bar and it increase when picking up items?

Something like this?