Vi3W
Skip to content

Guides

Build Roblox UI with Claude: menus, shops and HUDs

Use Claude Code with Roblox Studio's MCP server to build UI: setup, prompts for shops and HUDs, scale vs offset rules, and checking with screenshots.

3 min read

Floating stylised game interface panels and buttons made of glossy rounded 3D shapes, with no text, over a dark scene
Illustration. Shapes, spacing and states, built from a description.

Quick answer

Can Claude build Roblox UI?

Yes. Connected to Roblox Studio through the MCP server, Claude Code can create ScreenGuis, frames, buttons and the scripts behind them from a description, then take screenshots in Play mode to check the result. It works best with clear rules about scale, layout and style, written once as a skill.

How Claude builds UI in Studio

With Studio's MCP server on and Claude Code connected, Claude can:

  • Create ScreenGui, Frame, TextButton, ImageLabel and layout objects
  • Write the LocalScripts that open, close and animate them
  • Start a playtest and use screen_capture to see how it looks
  • Read the console when a button script errors

Setup is in build Roblox games with Claude.

Rules that make AI-built UI work on phones

Most Roblox players are on phones, and most broken UI comes from a few mistakes. Put these in your request, or better, in a project skill:

  • Use Scale, not Offset, for size and position. Offset is in pixels and breaks on different screens. Add UIAspectRatioConstraint to keep shapes square.
  • Use layout objects. UIListLayout, UIGridLayout and UIPadding instead of hand-placed positions.
  • Respect safe areas. Keep buttons clear of the top bar and phone notches.
  • Big tap targets. Buttons comfortable for a thumb.
  • Text scales. TextScaled with a UITextSizeConstraint so text stays readable but not huge.
  • One style. Corner radius (UICorner), stroke (UIStroke) and colours defined once and reused.
A glossy 3D shop interface panel with item slots holding tiny low-poly items and no text
Illustration. A shop grid is a layout object plus a template slot.

Example request

"Build a shop ScreenGui in StarterGui: a centred panel at 70% width and 70% height with a 4-column UIGridLayout of item slots. Each slot shows an ImageLabel icon, a name and a price, plus a Buy button. Use Scale only, UICorner 12px, and our colours (dark navy panel, indigo buttons). The Buy button fires the existing ReplicatedStorage.Shop.Purchase RemoteFunction with the item ID. Then playtest at phone size and screenshot it."

Name the existing RemoteFunctions and folders, or Claude has to guess.

Check its work

  • Screenshot at several sizes. Studio's device emulator lets you test phone and tablet layouts.
  • Tap everything. Open, close, buy, cancel.
  • Server checks. UI should only request purchases. The server decides. Never let a button script give items or currency directly.

Images for your UI

Claude builds the structure. Icons, item images and backgrounds are images you upload. Keep them small: Roblox notes texture memory grows with pixel count (performance guide), so a 128 or 256 icon is plenty for most buttons. See Roblox texture size.

Shop icons for 3D items look best as renders of the actual models. Vi3W generates the textured, retopologised models (GLB, FBX or OBJ) that you can render for item icons and import as the in-game items. Make shop items in Vi3W.

Last reviewed