So me and my friend who have been experimenting with this script found when respawning your heading isn't changed. so you can be facing the wrong direction when you respawn.
So What I've done is save the heading data when making the race and then when respawning it uses the heading data to reorientate the player which is a much better experience
Heading is now recorded at the last waypoint passed. If a player respawns, they will spawn at the last waypoint passed and use the heading that was recorded when it was passed.
So me and my friend who have been experimenting with this script found when respawning your heading isn't changed. so you can be facing the wrong direction when you respawn. So What I've done is save the heading data when making the race and then when respawning it uses the heading data to reorientate the player which is a much better experience