Race 2:

After I completed race 1 I moved onto race 2, I received the track from my team mate Kyle Williams and I added my waypoints and changed the names of all the marks using the name changer script. It looks like this:

After finishing the waypoints, I moved onto the if statements in the code to tell the car when to brake. Here is the code:

After I finished all the code the car was able to drive around the track multiple times without crashing which is what I wanted to achieve. This AI is relatively easy to beat and shouldn't give the player much trouble.