The scenario that shows an object gaining potential energy and losing kinetic energy is:
roller-coaster car slowing as it moves up a hill.
In this scenario, as the roller-coaster car ascends the hill, it gains potential energy due to an increase in height while its speed decreases, leading to a loss of kinetic energy.