Player spawning in the wrong direction.

When the player is spawning/re-spawning on the spawn point they are always looking towards the Z-Axis no matter the rotation of the spawn point which is what i want.

public class PlayerSpawner : MonoBehaviour
{
    public Transform[] spawnLocations;
    public GameObject[] whatToSpawnPrefab;
    public GameObject[] whatToSpawnClone;

    void Start()
    {
        playerSpawn ();
    }

    public void playerSpawn()
    {
        whatToSpawnClone[0] = Instantiate(whatToSpawnPrefab[0]) as GameObject;
    }
}

Instantiate takes optional arguments for position and rotation.

public void playerSpawn()
     {
         whatToSpawnClone[0] = (GameObject) Instantiate(whatToSpawnPrefab[0], spawnLocations[0].position, spawnLocations[0].rotation);
     }