There is an expression called zeropad. You can use it in the event where you display your text like this:
+ System: Every tick -> Text: Set text to zeropad(Score,5)
So the first number in the zeropad expression can be a variable such as your score, and the second number is the number of places you want to display.