How can I make a speed booster in a 2D game?

I made a Line Rider replica, however I still haven’t found out how to make the booster line, you know, the one that makes you go faster so I need some help making a speed boost in the form of a line that people can swap to by pressing a button and that can be driven on.
Thank you for the help.

This has been asked numerous times, for example: