I dont know how to make a functioning progress bar that works on a timer

Godot Version

Godot version 4.2


I am trying to make a progress bar work automatically with a timer as well as a manual progress bar that works with a clickable button but I can’t find anything on how to make it function or steps to make either happen at least in the current edition I use gdscript

for the timed one I gouess you want a countdown:

set the progress bar value and max value to the time in seconds that you want to count down from
every frame subtract the delta from the progress bar value and check if it is smaller equal zero

for the manual one simply increase the value of the bar by a certain ammount each time you press the button