Generate character in different position in photon network while joining room

hello

How to spawn connected player after joining room in different position using photon.instantiate ?
the connected other player should not get same position of master client
Thanks in advance.

You can create an empty gameobject in your scene and use its position to spawn a player:

Public Transform spawn1;
void Start(){
Spawn();
}
void Spawn(){
PhotonNetwork.Instantiate("player", spawn1.position, spawn1.rotation, 0, null);
}

Just link your gameobject to the script’s public “spawn1” transform.
@ajaybhojani