Skip to content

Getting Started

Installation

  1. Get the Plugin

    Open the NetRay Compiler Plugin on the Roblox Creator Store and click Get.

  2. Open in Studio

    Launch Roblox Studio, open the Plugins tab, and look for the NetRay toolbar.

  3. Launch Interface

    Click the NetRayCompiler button to open the compiler interface window.

Your First Schema

  1. In the Scope Name field, enter a name for your network definition (e.g., NetRay). -- Can be left empty.

  2. Paste the following example into the editor:

    rust
    // A simple reliable event
    event reliable Greet {
        From: Client,
        Data: string,
    }
  3. Click Compile to ReplicatedStorage.

Generated Assets

If successful, the plugin creates a folder structure in ReplicatedStorage:

  • ReplicatedStorage/NetRay/Server
  • ReplicatedStorage/NetRay/Client
  • ReplicatedStorage/NetRay/Types

Understanding Scopes

The Scope Name you enter (e.g., Combat) determines the names of the underlying RemoteEvents:

  • Combat_RELIABLE
  • Combat_UNRELIABLE
  • Combat_FUNCTION

Next Steps

NetRay Compiler docs. Current supported frontend: Roblox Studio plugin.