Execute your ROBLOX scripts directly from VS Code with a single click! This extension adds convenient buttons to your editor for connecting to and executing scripts in any ROBLOX executor.
This extension adds two buttons to your VS Code status bar:
"Connect to ROBLOX execute!" - Tests your connection to the ROBLOX executor
"EXECUTE ROBLOX!" - Sends your current code to be executed in ROBLOX
Setup Instructions
1. Add this script to your executor's autoexecute folder:
local WebSocket = assert(
WebSocket or Websocket or websocket or (syn and syn.websocket),
"Your executor is missing a websocket API!"
)
if not game:IsLoaded() then
game.Loaded:Wait()
end
while true do
local success, client = pcall(WebSocket.connect, "ws://localhost:33882/")
if success then
client.OnMessage:Connect(function(payload)
local callback, exception = loadstring(payload)
if exception then
error(exception, 2)
end
task.spawn(callback)
end)
client.OnClose:Wait()
end
task.wait(1)
end
2. How to Use
Open your ROBLOX executor and make sure it's running
Launch ROBLOX and join a game
Click the "Connect to ROBLOX execute!" button in VS Code to verify the connection
Write or open your script in VS Code
Click the "EXECUTE ROBLOX!" button to send and execute your script
Requirements
Any ROBLOX executor with WebSocket support
VS Code version 1.80.0 or higher
Troubleshooting
If you're having issues connecting:
Make sure your executor is running with the auto-execute script
Check that you're running ROBLOX and your executor as administrator
Verify that port 33882 is not blocked by your firewall