How to add waypoints/ timers for a car game!

Hey, I recently got into unity and need to make some sort of a game for a school project. I was going for a racing kinda game where you have to go through gates in order to gain time or you run out and lose. I got the car, road, terrain and all that but have no idea how to get the waypoints/ put a timer on and “lose” the game. Help would be VERY much appreciated!!!

Unity just released a new standard assets package, which has a car following a path, you could try to take a look at it. Unity Asset Store - The Best Assets for Game Making.

Or, if you’re not talking about AI, then you’ll have to work with triggers for the waypoints and a float decrementing in a coroutine or an Update function. Once it reaches 0, time’s up !