can anybody convert this script to js? (C#)

hi, can anybody convert this script to js? i need this?
c# script:

using UnityEngine;

using gui = UnityEngine.GUILayout;

public class GameMenu : MonoBehaviour

{

public GameObject PlayerPrefab;

string ip = "127.0.0.1";

public void CreatePlayer()

{

    connected = true;

    var g = (GameObject)Network.Instantiate(PlayerPrefab, transform.position, transform.rotation, 1);

    g.camera.enabled = true;

    camera.enabled = false;

}

void OnDisconnectedFromServer()

{

    connected = false;

}

void OnPlayerDisconnected(NetworkPlayer pl)

{

    Network.DestroyPlayerObjects(pl);

}

void OnConnectedToServer()

{

    CreatePlayer();

}

void OnServerInitialized()

{

    CreatePlayer();

}

bool connected;

void OnGUI()

{

    if (!connected)

    {

        ip = gui.TextField(ip);

        if (gui.Button("connect"))

        {

            Network.Connect(ip, 5300);

        }

        if (gui.Button("host"))

        {

            Network.InitializeServer(10, 5300, false);

        }

    }

}

}

In response to your question

can anybody convert this script to js? (C#)

The answer is: Yes! You can!

Unity’s javascript and C# implementations are very similar. Here are a couple of resources to get you started:

You can also check out this answer for a possible way to directly convert the script: