How to make a progress bar for loading screen

I just need it to move 20 percent every .5 seconds.

The method has to return a value betwenn 0 and 1 so you have to change your variable in the event graph with a timer or timeline vy a value of 0.2 every 5 seconds and return the variable in this method.