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

|
39 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
  • ⚡ Supports Auto Execution when the selected client is reconnected!

🔧 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" -- your computer ip address
local port = "33882" -- your port
local reconnectDelay = 3

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

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

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

local function encode(tbl)
    return game:GetService("HttpService"):JSONEncode(tbl)
end

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

    if ok and pong == "pong" then
        warn("Server online, connecting...")

        local wsOk, client = pcall(WebSocket.connect, "ws://" .. host .. ":" .. port .. "/")
        if wsOk and client then
            warn("WebSocket Connected")

            client:Send(encode({
                type = "IDENTITY",
                displayName = lp.DisplayName,
                name = lp.Name,
                userId = lp.UserId,
                placeId = game.PlaceId,
            }))

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

            client.OnClose:Wait()
            warn("WebSocket closed, reconnecting...")
        else
            warn("Connection failed, retrying...")
        end
    else
        warn("Server offline...")
    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 Find "Ro-Direct Execute Commands" hover it and click whatever you want!
⌨️ 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