Checkpoint System

Anyone can teach me how to make a checkpoint system like the one in gmod racer? Or if there has been one realeased, where to get it?