Player Instantiate won't work

Hello I’m working on a multiplayer game using photon and I’m trying to instantiate the players but it won’t work. Does anyone have any idea why it’s not working? Here is the script

public class GameSetup : MonoBehaviour
{
    
    public Transform[] spawnPoints;

    void Start()
    {
        PhotonView PV = PhotonView.Get(this);
        PV.RPC("RPC.CreatePlayer", RpcTarget.All);
    }

    [PunRPC]
    private void RPC_CreatePlayer()
    {
        Player[] players = PhotonNetwork.PlayerList;

        for (int i = 0; i < players.Length; i++)
        {
            PhotonView PV = PhotonView.Get(this);
            PV.RPC("playerSpawn", players[3], spawnPoints_.position, spawnPoints*.rotation);*_

}
}

[PunRPC]
void playerSpawn(Vector3 spawnPos, Quaternion spawnRot)
{
PhotonNetwork.Instantiate(“Taya”, spawnPos, spawnRot, 0);
}

@whatisthislol
If you want to Instantiate the player or “Taya” then Taya should be a prefab and placed in a folder called “Resources” (this folder can be anywhere in the project) then only it would be Instantiated.

I hope this would answer your question :O)

See

you need to have a prefab available, usually by dragging one to a public variable in the Inspector.