Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ro-Direct ExecuteNew to Visual Studio Code? Get it now.
Ro-Direct Execute

Ro-Direct Execute

Ashbornn

|
3 installs
| (1) | Free
A lightweight and powerful tool extension for Script Developers in Roblox.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🌐 Ro-Direct Execute — VSCode to Roblox (Mobile/PC) Direct Execution

A simple yet powerful Visual Studio Code extension to send and run scripts directly to Roblox using WebSockets.

⚡ Features

  • 🔁 One-click execution of Lua/Luau scripts from VSCode to Roblox
  • 📡 Auto-detects connected clients via WebSocket
  • 💬 Optional Discord Webhook support
  • 🖱️ Right-click context menu & Ctrl + Enter shortcut for fast execution
  • 📂 Supports .lua, .luau, .txt, and other file types

🔧 Setup Guide

✅ On Your Executor (Mobile or PC)

  1. Place the following script inside your executor's auto-execute folder.

  2. On your PC, open Command Prompt (cmd) and type:

    ipconfig
    
  3. Find your IPv4 Address, it should look like this:

    IPv4 Address. . . . . . . . . : 192.168.1.10
    
  4. Copy that IP and paste it in the host variable below:

local host = "192.168.1.10" -- Replace with your PC's IP
local port = "33882"
local reconnectDelay = 3

local WebSocket = assert(
    WebSocket or Websocket or websocket or (syn and syn.websocket),
    "WebSocket API missing! Your executor must support WebSocket."
)

local Players = game:GetService("Players")
local lp = Players.LocalPlayer

if not game:IsLoaded() then
    game.Loaded:Wait()
end

while true do
    local success, result = pcall(function()
        return loadstring(game:HttpGet("http://" .. host .. ":" .. port .. "/ping"))()
    end)

    if success and result == "pong" then
        warn("Server online, connecting to WebSocket...")

        local wsSuccess, client = pcall(WebSocket.connect, "ws://" .. host .. ":" .. port .. "/")
        if wsSuccess and client then
            warn("WebSocket Connected.")
            client:Send(("✅ %s has connected!"):format(lp.DisplayName))

            client.OnMessage:Connect(function(payload)
                local func, err = loadstring(payload)
                if not func then return warn(err) end
                task.spawn(func)
            end)

            client.OnClose:Wait()
            warn("WebSocket Closed, reconnecting...")
        else
            warn("WebSocket connection failed, retrying...")
        end
    else
        warn("Server Offline, retrying ping...")
    end

    task.wait(reconnectDelay)
end

🎮 How to Execute Scripts

Method Action
🔘 Status Bar Button Visible when at least one client is connected
🖱️ Right-Click Menu "Execute Current File" and "Kill Client" options
⌨️ Shortcut (Ctrl+Enter) Instantly executes your script in active editor

Works only with .lua, .luau, or .txt files in the active editor.


🧠 Important Tips

  • Ensure your PC and Mobile are connected to the same WiFi or Router
  • Your Executor must support WebSocket, otherwise, this will not work
  • If prompted by firewall, allow Node.js or VSCode to accept local connections
  • You can change the IP and Port, but make sure they match on both sides

🤝 Credits

Developed by Ashbornn 💬 Discord Support: discord.gg/AshbornnHub

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft