@bunnycoder16 for the origional code. Press space to hide hitboxes. You can also press the flag to change the generation of the road. Also turn on turbo mode by holding shift and clicking the flag to make the cars faster and maybe seperate the cars. I also added the OG car to test what the difference is, even though that might effect the ai because it's baised on "if touching color" blocks. turn it off using the P key. sometimes the car likes to be weird and clip outside on tough turns. it loves to do that for some reason and decides to drive backwards like mater from the movie cars, while treating the road as a wall and spinning around in circles. i seperated the side hitboxes and even the one that tells the sprite to go away from the wall. seems this code perfers to be on bigger roads for some reason now, so i added an extra slider for the road size to have some fun. The reason for the car being disconnected from the road sometimes might be whatever i done with the "if touching wall bounce" replacement i made. if i'm correct i extended the hitbox for the "car" itself so hopefully there is more room for the car to back up and move away from the off road before it becomes mater. I also made the hitboxes count toward whatever "size" the original car has for touching the road, since it really depends on touching a specific color (the road).