I will examine the project files to understand the repository structure and available resources.
I will now read package.json to check which dependencies and design icons are already installed in the project.
I will install lucide-react for Roblox Studio icons and toolbar indicators, along with canvas-confetti and @types/canvas-confetti to add interactive delight upon exporting files.
I will now inspect src/index.css to check the styling configuration and layout variables.
I will now inspect index.html to review the current title, meta description, and fonts before updating it for our Roblox UI building workspace.
I will now update index.html to add Google Fonts ('Inter' and 'JetBrains Mono' for Lua/XML script previews), a Roblox Studio-inspired dark theme background color, and a title for the web studio: "BloxGUI Studio — Roblox UI Workspace & Exporter".
I will conduct a quick web search on the Roblox RBMX format for GUI elements (like ScreenGui, Frame, TextLabel, UDim2, Color3) to ensure our exported .rbmx XML file conforms precisely to Roblox Studio's serializer syntax.
I will perform one quick web search to see how UDim2 values are structured inside Roblox .rbxmx / .rbxlx XML tags so our model exporter matches Roblox Studio exact specification.
I will now create src/types/roblox.ts, which defines all Roblox GUI Element types (Frame, TextButton, TextLabel, ImageLabel, ImageButton, ScrollingFrame, TextBox), UI modifiers (UICorner, UIStroke, UIGradient, UIListLayout, UIPadding), UDim2 coordinate dimensions, styling enum properties, and project state structures.
I will now create src/utils/robloxHelpers.ts, which contains tools for UDim2 screen calculations, color conversions (Hex to RGB and Roblox Color3.fromRGB), font mappings, preset icon galleries, and tree hierarchy manipulation functions (finding, inserting, deleting, duplicating, and re-parenting nodes in the GUI tree).
I will remove the unused type imports (GuiModifier, UDim2, Vector2) from src/utils/robloxHelpers.ts.
I will now update index.html to include Google Fonts corresponding to Roblox Studio fonts (Fredoka, Bangers, and Luckiest Guy) so live font previews on buttons and labels look authentic on the canvas.
I will now create src/services/luaExporter.ts to transform the graphical GUI element tree into clean, production-ready .lua Roblox Script code complete with UDim2 conversions, Color3 transformations, UI modifiers, and optional script behaviors (such as Smooth Dragging, Tween Hover Effects, and Button click listeners).
I will now create src/services/rbxmxExporter.ts to export Roblox Studio compliant XML model files (.rbxmx / .rbmx). It transforms elements, hierarchy layers, colors (floating point Color3), dimensions (UDim2 XS, XO, YS, YO tags), and UI modifiers into valid Roblox DOM structure ready for drag-and-drop import into Roblox Studio.
I will remove the unused GuiModifier type import from src/services/rbxmxExporter.ts.
I will now create src/data/templates.ts containing three fully styled Roblox GUI templates (Sci-Fi Cyber Store, Action RPG Player HUD, and Daily Reward Center) complete with hierarchy structures, UICorner styling, UIStrokes, UIGradients, and interactive button behaviors.
I will now create src/components/TopNavbar.tsx, which houses the workspace navigation bar, resolution selector, template switcher, design/play mode switcher, zoom controls, and the Flawless Export button.
I will now create src/components/ExplorerPanel.tsx to provide the toolbox for adding GUI elements and style modifiers, alongside a collapsible hierarchy tree modeled after Roblox Studio Explorer.
I will now create src/components/CanvasWorkspace.tsx to render the GUI elements according to Roblox UDim2 math, offering real-time dragging, resizing handles, live preview fonts and styles, and background scenery options (Roblox Baseplate grid, 3D Game Footage simulation, and Solid Studio dark theme).
I will remove the unused icons (Move, Maximize, Maximize2) from src/components/CanvasWorkspace.tsx.
I will now create src/components/PropertiesPanel.tsx to serve as the Properties inspector and Script Behavior editor, matching Roblox Studio's categorized properties layout with live controls for UDim2, AnchorPoint, Fonts, Color3, Preset Icons, and custom interactive behaviors.
I will now create src/components/ExportModal.tsx, which provides an interface for flawless file export with live code inspectors for both .rbmx (Roblox Model XML) and .lua (Roblox Scripting) formats, celebration confetti upon download, clipboard copy tools, and project saving.
I will now create src/components/OutputConsole.tsx to provide an in-studio developer Console/Output window that logs simulated GUI interactions, scale-offset unit transformations, and system messages in real time.
I will now create src/components/StudioGuideModal.tsx to provide developers with interactive documentation and visual tips explaining UDim2 Scale vs Offset, model importing in Roblox Studio, and UI styling techniques.
I will remove the unused ShieldAlert import from src/components/StudioGuideModal.tsx.
I will now update src/App.tsx to integrate all workspace panels, coordinate tree modifications, manage import/export workflows, handle element duplication and modifier attachment, and connect the live developer Output Console.
I will now run build_project to verify that TypeScript compilation and Tailwind CSS compilation succeed cleanly without errors.
I have created BloxGUI Studio, an interactive website that allows Roblox Studio developers to design, style, test, and export custom GUI elements seamlessly.
🌟 Key Features Built:
-
Interactive Visual UI Canvas & Workspace
- UDim2 & Vector2 Precision: Renders elements with absolute fidelity to Roblox Studio's coordinate system (
Scale vs. Offset, AnchorPoint, and ClipsDescendants).
- Interactive Drag & Snap Grid: In Design Mode, select any Frame or Button to drag across the viewport, resize via handles, or snap to grid lines.
- Viewport Scenery Settings: Switch backgrounds between classic Roblox Baseplate Grid, simulated In-Game 3D Gameplay Backdrop, or solid studio dark theme across device resolutions (Desktop Full HD 16:9, Laptop, iPad/Tablet 4:3, Mobile Landscape).
- Instant Responsive Converter: Includes quick conversion tools ("⚡ Convert to Scale (%)" vs "📏 Convert to Offset (PX)") in the properties menu so creations auto-resize across mobile and PC without manual math.
-
Studio Explorer & Toolbox
- Toolbox Inserter: Add
Frame, TextLabel, TextButton, ImageLabel, ImageButton, ScrollingFrame, and TextBox instances directly into any selected container.
- UI Modifiers Hub: Attach
UICorner rounded corners, neon UIStroke outlines, and multi-color UIGradient overlays with live rendering.
- Hierarchical Explorer Tree: Modeled directly after Roblox Studio Explorer with visibility toggling, instant duplication, deletion, and parent-child tree navigation.
-
Categorized Studio Properties Inspector
- Appearance: Hex & Color3 color pickers, transparency sliders, and border controls.
- Text & Font Previewer: Supports real-time rendering of authentic Roblox fonts (
GothamBold, FredokaOne, Bangers, SciFi, SourceSans), text scaling, and alignments.
- Image & Preset Icon Hub: Input custom asset IDs (
rbxassetid://...), web URLs, or pick from our built-in preset library of coins, gems, weapons, treasure chests, and shields.
- Script Behavior Generator: Enable smooth draggable UI scripts, automatic hover tweens on buttons, output print logs, or toggleable window controls.
Files built: index.html, src/types/roblox.ts, src/utils/robloxHelpers.ts, src/services/luaExporter.ts, src/services/rbxmxExporter.ts, src/data/templates.ts, src/components/TopNavbar.tsx, src/components/ExplorerPanel.tsx, src/components/CanvasWorkspace.tsx, src/components/PropertiesPanel.tsx, src/components/ExportModal.tsx, src/components/OutputConsole.tsx, src/components/StudioGuideModal.tsx, src/App.tsx