Best way to respawn car?

I have a racing game I’m working on and currently when the player racing car crashes it blows up, creates a gameObject called “respawn” and then destroys itself.

The camera is attached to the player at all times.

The object respawn then instantiates the player at the last respawn point he had crossed.

This for some reason doesn’t work.

I’m pretty sure my code is sound.

Any better ways to respawn?

Or a guess as to why my object doesn’t work?

I solved it:

The Object Respawn wasn’t part of the prefab for the player

sorry