Here’s an example with health, it behaves similar to the stamina example you provided.
This function is called to set health, once done it calls SimHealth event.
This is the SimHealth event, ProgressBarHealthSim is the bar underneath the main health progressbar.
This is the interpolation I was talking about