// Update is called once per frame
    public override void OnJoinedRoom()
    {
        GameObject newPlayer = PhotonNetwork.Instantiate("Player", Vector3.zero, Quaternion.identity);

        GameStateScript.player = newPlayer;
        GameObject.Find("CM vcam1").GetComponent <CinemachineVirtualCamera>().Follow = newPlayer.transform;
        script.joinLobby();
    }