A VS Code extension that enables hot-reload functionality for Roblox game development, allowing you to quickly test and restart your Roblox simulator without manual intervention.
demo.mp4
- Auto Reload on Save: Automatically triggers simulation restart when you save TypeScript, JavaScript, or Lua files
- Manual Trigger: Press
F2to trigger a "run or restart" command for your Roblox simulation -File Type Filtering: Intelligently filters supported file types (.ts,.tsx,.js,.jsx,.lua,.luau) - Restart Roblox Studio Simulator Management: Start and stop the WebSocket server on demand via VS Code commands
The extension is available on the VS Code Marketplace. Install it like any other extension through the Extensions panel in VS Code.
You must also install the Restart Roblox Studio Simulator Bridge Plugin in Roblox Studio:
- Open Roblox Studio
- Go to Plugins → Manage Plugins
- Search for "Restart Roblox Simulator Bridge Plugin" or use this direct link:
- Click Install
The plugin adds toolbar buttons to connect/disconnect from the VS Code extension and enables the restart functionality.
- Press
F2to send a "run or restart" message to all connected Roblox clients
- Simply save a supported file (TypeScript, JavaScript, or Lua) to automatically trigger a restart
You can manage the WebSocket server using VS Code commands (accessible via Cmd+Shift+P / Ctrl+Shift+P):
- Restart Roblox Studio Simulator: Start - Start Restart Roblox Studio Simulator
- Restart Roblox Studio Simulator: Stop - Stop Restart Roblox Studio Simulator
- A status bar indicator shows the current Restart Roblox Studio Simulator state (Running/Stopped)
Restart Roblox Studio Simulator starts automatically when the extension is activated.
The extension requires an explicit port configuration. Each VS Code instance should use a unique port to support multiple simultaneous Roblox Studio instances. Make sure to assign and use different WebSocket ports for each Roblox project to avoid connection conflicts and ensure proper functionality.
Add the WebSocket port to your workspace settings (Keep USER settings at 0) (.vscode/settings.json):
{
"restartRobloxStudioSimulator.websocketPort": 3010
}For multiple workspaces, use different ports:
- Workspace A: "restartRobloxStudioSimulator.websocketPort": 3010
- Workspace B: "restartRobloxStudioSimulator.websocketPort": 3011
- Workspace C: "restartRobloxStudioSimulator.websocketPort": 3012
- Click the Plugin's Icon in the Roblox Studio toolbar
- Enter the WebSocket port number (must match the port configured in VS Code)
- Click Connect to establish the connection
To disable automatic reloading when files are saved, add the following to your VS Code settings (.vscode/settings.json):
{
"restartRobloxStudioSimulator.disableAutoReload": true
}When enabled, automatic reloading on file save is disabled. You can still use the F2 keyboard shortcut to manually trigger a reload.
- Clone or download this repository
- Install dependencies:
npm install
- Open the project in VS Code
- Press
F5to run the extension with a new Extension Development Host window
Special thanks to zephyras and oryaelia for contributions and feedback!
MIT License - Copyright (c) 2025 Jeremy Tenjo. See LICENSE file for details.
