Skip to content

Studio Plugin Workflow

Install source: NetRayCompilerPlugin on Creator Store

UI Overview

The plugin widget includes:

  • Remote Scope Name textbox.
  • IDL Schema multiline editor.
  • Compile to ReplicatedStorage button.
  • Load Selection button.
  • Clear button.
  • Status line for compile/write feedback.

Buttons

Compile to ReplicatedStorage

  • Compiles current schema text locally (no HTTP).
  • Writes/updates ModuleScripts under ReplicatedStorage/NetRay:
    • Server
    • Client
    • Types

Load Selection

  • Requires exactly one selected LuaSourceContainer (Script, LocalScript, or ModuleScript).
  • Loads the selected script's entire Source text into the schema editor.

Clear

  • Clears only the editor text.

Persistence

  • Scope textbox and schema text are saved in plugin settings.
  • Last values are restored when the plugin opens again.

Write Behavior

  • If ReplicatedStorage/NetRay does not exist, plugin creates a Folder.
  • Existing non-ModuleScript children named Server, Client, or Types are replaced.
  • Existing matching ModuleScripts are overwritten in place.

Common Plugin Errors

ErrorCause
Schema is emptyEditor has no schema text.
Compile failed: ...Parser/analyzer/generator failure.
Compiled, but write failed: ...Compile succeeded but writing modules failed.
Select exactly one Script...Invalid selection count/type for Load Selection.

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