You need two variables, lets say varScore will store actual score, varText what is in text.
(text will be "set text to" varText)
Then:
if varText < varScore
subevent - every desired seconds - add desired number to varText
else
if varText > varScore - set varScore to varText