I made a mistake and left out something. Open the
.lua file with a text editor like Notepad and modify the following line:
Code:
local cur,_,max=bar:GetValue(),bar:GetMinMaxValues();
Add the parenthesis colored green.
This fix has been applied to the code posted above as well.