Loading...
Loading...
This skill should be used when the user asks to "execute Lua code in Roblox Studio", "run code in Studio", "test Lua script", "connect to Studio Hub", "manage Studio instances", "check Studio status", "install Studio Hub", "setup Studio Hub service", or mentions Roblox Studio remote execution, Studio Hub API, or Lua code testing.
npx skill4agent add white-dragon-tools/roblox-studio-hub roblox-studio-hub┌─────────────────┐ HTTP Long Polling ┌─────────────────┐
│ Roblox Studio │ ◄──────────────────────► │ Studio Hub │
│ (Plugin) │ │ (Server) │
└─────────────────┘ └────────┬────────┘
│
┌────────▼────────┐
│ CLI / API │
│ localhost:35888│
└─────────────────┘管理员# Configure GitHub npm registry
npm config set @white-dragon-tools:registry https://npm.pkg.github.com
# Install globally
npm install -g @white-dragon-tools/roblox-studio-hub# Register as system service (auto-start on boot)
# Windows: Run as Administrator
# Mac/Linux: Use sudo
roblox-studio-hub install
# Check service status
roblox-studio-hub statusroblox-studio-hub install-pluginroblox-studio-hub status-h--help| Command | Description |
|---|---|
| Run server in foreground (for debugging) |
| Register as system service (auto-start) |
| Uninstall system service |
| Start system service |
| Stop system service |
| Check Hub service status |
| Update to latest version (auto-handles service restart) |
| Command | Description |
|---|---|
| List all connected Studios |
| Show Studio details |
| View Studio logs |
# Basic usage
roblox-studio-hub exec <studioId> <file> [-m mode]
# Examples
roblox-studio-hub exec place:123456 script.lua # Execute with eval mode
roblox-studio-hub exec local:MyGame test.lua -m run # Server-side test
roblox-studio-hub exec path:D:/Projects/MyGame test.lua --mode play # Full play moderoblox-studio-hub install-plugin # Install Studio pluginroblox-studio-hub update| Mode | Description | Use Case |
|---|---|---|
| Direct execution via | Quick scripts, simple tests |
| Server-side test via | Server logic testing |
| Full Play mode (server + client) | Complete game testing |
place:{placeId}place:123456local:{placeName}local:MyGamepath:{localPath}path:D:/Projects/MyGame# List all connected Studios
roblox-studio-hub list
# Get details of a specific Studio
roblox-studio-hub info place:123456# Create a test script
echo "print('Hello from Hub!'); return 42" > test.lua
# Execute on a connected Studio
roblox-studio-hub exec place:123456 test.lua# View last 100 logs (default)
roblox-studio-hub logs place:123456
# View last 50 logs
roblox-studio-hub logs local:MyGame -n 50# Update with automatic service handling
roblox-studio-hub update
# Update plugin if needed
roblox-studio-hub install-pluginGET /api/statusGET /api/studiosGET /api/studios/:idGET /api/studios/:id/logs?limit=100POST /api/execute
Content-Type: application/json
{
"studioId": "place:123456",
"code": "print('Hello'); return 42",
"mode": "eval",
"timeout": 30
}| Variable | Default | Description |
|---|---|---|
| | Server port |
| Issue | Solution |
|---|---|
| Studio not connecting | Enable HTTP requests in Studio Settings → Security |
| Connection timeout | Check firewall, verify port 35888 is open |
| Code execution fails | Check Lua syntax, review error in response |
| Studio disconnects | Hub removes inactive Studios after 35s without heartbeat |
| Service not starting | Run |
| Update fails | Run with admin/sudo privileges |
references/api-reference.mdreferences/lua-patterns.md