CreateRoom failed. Client is on MasterServer

I want to make a multiplayer for my game, the script was written according to the guides on YouTube. When I enter a room name and click the “create” button, I get this error:

CreateRoom failed. Client is on MasterServer (must be Master Server for matchmaking)but not ready for operations (State: PeerCreated). Wait for callback: OnJoinedLobby or OnConnectedToMaster.
UnityEngine.Debug:LogError (object)
Photon.Pun.PhotonNetwork:CreateRoom (string,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,string) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1782)
Menu:_CreateRoom () (at Assets/Scripts/Menu.cs:20)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:385)

using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using Photon.Pun;
using Photon.Realtime;

public class Menu : MonoBehaviourPunCallbacks
{
    public InputField _createRoomField;
    public InputField _joinRoomField;

    public void _CreateRoom()
    {
        RoomOptions _roomOptions = new RoomOptions();
        _roomOptions.MaxPlayers = 4;
        PhotonNetwork.CreateRoom(_createRoomField.text, _roomOptions);
    }

    public void _JoinRoom()
    {
        PhotonNetwork.JoinRoom(_joinRoomField.text);
    }

    public override void OnJoinedRoom()
    {
        PhotonNetwork.LoadLevel("LVL1");
    }
}