Play the sound in the same method that spawns the player.
So assuming that there's an AudioSource attached to the game object where the respawn script is attached, just call:
audio.Play();
right after the character respawns.
I don't know why you have Transform there, but it shouldn't be there.
↧