What script do i use for sensing when the player gets to a checkpoint or finish line?

So im making a racing game and i have no idea what type of script to use for the thing mentioned in the title.

Im thinking of something like invisible cancollide off walls on checkpoints and the finish line and a part on the car that when touched approve of completing a lap or touching a checkpoint, but that seems hard to code because i just cant get it to work. Does anyone have an idea?

Thanks in advance :smiley:

1 Like

Have a variable for laps, and set it to 0, then detect the part using a touched event on the car/character or something else(Probably :GetPartsInPart() or :GetPartBoundsInBox()). and increment the laps variable by one, after your specified lap amount is met, change it to โ€œFinishedโ€ and add a condition for finishing.

1 Like