I'll create a browser-based Roblox Studio-inspired 3D editor using React, Three.js, and Tailwind CSS. Let me start by exploring the project.
Now let me install Three.js and related dependencies.
Now let me create the project structure. I'll create all files needed for the Roblox Studio-like 3D editor.
Now let me create all the UI components.
Let me fix the lint errors across the files.
Now let me create the 3D viewport components.
Now let me rewrite the wedge/corner geometry section to use THREE.Shape properly:
Now let me create the main App.tsx layout and update the HTML title:
Now let me fix the bg-zinc-850 class that doesn't exist in Tailwind:
Let me build and check for errors:
The build passes! But I need to fix the status bar in App.tsx to be reactive. Let me also add keyboard shortcut support:
Build is successful! Let me add keyboard shortcuts for a more authentic experience:
Let me clean up a small issue in StatusBar.tsx:
Let me do a final build to confirm everything works:
The Roblox Studio browser app is built successfully! Here's a summary of what was created:
🎮 Roblox Studio - Browser Edition
A fully functional 3D editor inspired by Roblox Studio, running in your browser!
File Structure
| File | Purpose |
|---|
src/store/useStore.ts | Zustand state management (parts, selection, tools) |
src/components/Toolbar.tsx | Top toolbar with menus, tools, and part creation |
src/components/Sidebar.tsx | Left sidebar with tool icons and part color swatches |
src/components/Explorer.tsx | Right panel showing scene hierarchy (Workspace tree) |
src/components/Properties.tsx | Property editor (name, color, position, rotation, scale, physics) |
src/components/ViewportScene.tsx | 3D scene with Three.js - orbit controls, grid, lighting |
src/components/StatusBar.tsx | Bottom bar showing part count and active tool |
src/hooks/useKeyboardShortcuts.ts | Keyboard shortcuts for efficient workflow |
Features
- 3D Viewport - Full 3D scene with orbit controls (drag to orbit, scroll to zoom)
- 5 Part Types - Block, Sphere, Cylinder, Wedge, and Corner Wedge
- Tools - Select, Move, Scale, Rotate
- Property Editing - Change name, color (with color picker), transparency slider, position/rotation/scale (X/Y/Z), anchored & canCollide toggles
- Scene Explorer - Hierarchical tree view of all parts in the workspace
- Delete & Duplicate - Remove or duplicate selected parts
- Grid Floor - Clear visual reference grid in the viewport
Keyboard Shortcuts
| Key | Action |
|---|
Q | Select tool |
W | Move tool |
E | Scale tool |
R | Rotate tool |
1 | Add Block |
2 | Add Sphere |
3 | Add Cylinder |
Delete/Backspace | Delete selected part |
Ctrl+D | Duplicate selected part |
Files built: src/store/useStore.ts, src/components/Toolbar.tsx, src/components/Sidebar.tsx, src/components/Explorer.tsx, src/components/Properties.tsx, src/components/ViewportScene.tsx, src/App.tsx, index.html, src/index.css, src/components/StatusBar.tsx, src/hooks/useKeyboardShortcuts.ts