I need help with a variable that keeps dropping back to 0

Thanks! I suspected it was something like that.