Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>executor-ws-servNew to Visual Studio Code? Get it now.
executor-ws-serv

executor-ws-serv

00._lxh

|
17 installs
| (0) | Free
Execute your code from VSC in any roblox executor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

UNIVERSAL ROBLOX EXECUTION

Please note the script provided below must be executed or this extension wont work, putting it into auto execute is recommended

IMPORTANT

Your executor must support "WebSocket" library to work.

The extension activates once you open a lua file, which is always activated

Lua compilation errors are redirected into vscode notification system

If you put the provided script into auto execute the client will automaticaly connect once the extension is activated and execute button will appear

When no client/executor is running and you click execute it doesnt work

When client connects or disconnects, you get a notification

When no client is connected you get a warn notification

EXECUTOR SCRIPT

repeat wait() until game:IsLoaded()

while task.wait(1) do
	
	if getgenv().executor_ws_serv then
		error("[ WEB_SOCKET ]: web socket already connected."); break;
	end

	local __e, __d = pcall(function()

		getgenv().executor_ws_serv = WebSocket.connect("ws://localhost:33882/");
		executor_ws_serv:Send("auth:" .. tostring(game:GetService("Players").LocalPlayer.UserId));

		executor_ws_serv.OnMessage:Connect(function(msg)

			local __s, __d = pcall(function()
				return loadstring(msg)();
			end);

			if not __s then executor_ws_serv:Send("compile_err:" .. tostring(__d)); return; end;
		end);
	end);

	if not __e then return error("[ WEB_SOCKET ]: " .. tostring(__d)); end;
	warn("[ WEB_SOCKET ]: web socket connected.");

	executor_ws_serv.OnClose:Wait();

	warn("[ WEB_SOCKET ]: web socket closed.");
	warn("[ WEB_SOCKET ]: reconnecting web socket..");
end;

Put the script into auto execute (recommended) or just execute it.

TO-DO LIST

i will maybe make this say to vscode that this is a debugger and redirect output functions (print, warn, error) into the debug console

OTHER

if something doesnt work, contact me on discord 00._lxh

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