The force of friction acts on the moving cars, decreasing the total amount of mechanical energy in the system. The mechanical energy is not lost, however. It is transformed into thermal energy, which can be detected as an increase in the temperature of the roller coaster's track and car wheels.