Can someone help me with the speed multiplier?

I am producing a racing game and want to make a speed multiplier can someone help me
Example: the game Subway Surf that has the star 2x that increases the speed of the character
Thanks in advance!