The game should keep track of how good the player is doing based off how many miles they drove before getting knocked off the screen. The miles should be based off the speed variable.
In your car's code, grab another "when green flag clicked" block and put it anywhere. Add a "variables" block called "set __ to __" and set miles to 0.