Scoreboard that scrolls the score up.

Hey everyone,
I have searched for a while on this but I cannot figure out how to go about making a scoreboard that scrolls the score up similar to the temple run scoreboard. Currently I have a scoreboard that changes the score correctly but it would look a lot nicer if I had the numbers scroll up.
Thanks in advance
I have searched for a while on this but I cannot figure out how to go about making a scoreboard that scrolls the score up similar to the temple run scoreboard. Currently I have a scoreboard that changes the score correctly but it would look a lot nicer if I had the numbers scroll up.
Thanks in advance

Comments
It's up to you
cheers
I used the interpolate attribute and it worked except that it shows a lot of decimals instead of just scrolling by whole numbers, any idea how to fix this?
Thanks!
change the To: {Function} ceil(game.newScore)
as your going up use the ceiling Function to round-up the interpolation
@};- MH
Integer, Real, Index are all numerical values
you can add/subtract/multiply/divide those numerical numbers by any number:
the Integer will store/display whole positive or negative numbers;
the Real type will store/display whole and decimal, positive or negative numbers;
the Index type will store/display only whole numbers that are positive
the Interpolate behavior incrementally changes an attribute from one value to another over a specified period of time (Duration)
it does so in small fractional units (decreasing decimal placement value units … from 10,000th to none)
and, ends by storing/displaying the value in the attribute's type of formatting
indeed simpy changing an Integer Attribute: game.Score To: 20 … will do so in increments.
what is really important here … is that no matter whether Integer, Real, or Index type
If you chose to display the attribute … the Interpolation behavior will show the decimal values while running.
for a score to display without decimals while interpolating to a newScore, because you want the nice look of gradual change,
you can use a function: ceil(x) or floor(x); to round-off the numbers during the interpolation.
replace the x in those functions with a selected attribute … in this case: game.Score
@};- MH