Ir al contenido principal
All posts
Guides

How to Make a Roblox UI in Roblox Studio

How to make a Roblox UI in Roblox Studio step by step: ScreenGui, Frames, buttons, Scale sizing, layouts, scripting a button, and testing on phones.

Most first Roblox UIs go the same way: you drag a Frame onto the screen, add a few buttons, resize them until they look right, and press Play. It works on your monitor. Then you open the Device Emulator, pick a phone, and half of it is gone.

This guide builds a small, working UI the right way from the start: a currency counter and a shop button that opens a panel. Each step uses the object and property names you'll see in Studio, based on Roblox's Creator Documentation (checked November 29, 2026). Once you understand the structure, any screen (inventory, settings, daily rewards) is the same pattern.

How Roblox UI is organized

ObjectWhat it does
ScreenGuiThe container for on-screen UI. Lives in StarterGui; Roblox copies it into each player's PlayerGui when they spawn.
FrameA box. Panels, cards and backgrounds.
TextLabel / TextButtonText you show / text you can click.
ImageLabel / ImageButtonYour uploaded images (icons, art), shown or clickable.
UICorner, UIStroke, UIGradientRounded corners, outlines and gradients on a frame or button.
UIListLayout, UIGridLayout, UIPaddingAutomatic arrangement and spacing of children.
LocalScriptClient code that reacts to clicks.

Step 1: Add a ScreenGui

  1. In the Explorer, hover over StarterGui, click +, and insert a ScreenGui. Rename it MainUI.
  2. Leave ResetOnSpawn on if the UI should reset when the player respawns; turn it off for persistent HUDs.

Step 2: Build the HUD with Scale

  1. Inside MainUI, insert a Frame named CoinCounter.
  2. Set AnchorPoint to (1, 0) and Position to {1, -16}, {0, 16} so it sits in the top-right corner with a small margin.
  3. Set Size to {0.15, 0}, {0.07, 0}: 15% of screen width, 7% of height.
  4. Add a UICorner (CornerRadius 0, 12) and a UIStroke for an outline.
  5. Inside it, add a TextLabel with Size {1, 0}, {1, 0}, BackgroundTransparency 1, TextScaled on, and text "0 Coins".

Using Scale is the single biggest habit that separates UIs that work on phones from ones that don't. Our Roblox GUI size guide explains Scale, Offset and AnchorPoint in detail.

Diagram showing a frame positioned with Scale versus Offset Position with Scale keeps elements in the same relative spot on every screen. Image: Roblox Creator Docs, CC BY 4.0.

Step 3: Add a button and a hidden panel

  1. Insert a TextButton named ShopButton in MainUI. Anchor it (0, 0.5), position {0, 16}, {0.5, 0} (left edge, vertically centered), size {0.08, 0}, {0.08, 0}, and add a UIAspectRatioConstraint (AspectRatio 1) so it stays square.
  2. Insert a Frame named ShopPanel. Anchor (0.5, 0.5), position {0.5, 0}, {0.5, 0}, size {0.6, 0}, {0.65, 0}, plus a UIAspectRatioConstraint around 1.6. Set Visible to false.
  3. Inside the panel, add a title TextLabel and a close TextButton in the top-right corner.

Step 4: Lay out repeated items automatically

Inside ShopPanel, add a ScrollingFrame for the items, then a UIGridLayout inside that. Set CellSize to a Scale value such as {0.3, 0}, {0.45, 0} and CellPadding to a small gap. Every Frame you add now snaps into a grid, so adding a seventh item doesn't mean repositioning six others. For a vertical list (settings, quests) use UIListLayout instead. A UIPadding keeps items off the panel edge.

Step 5: Make the button work

Add a LocalScript inside MainUI:

local gui = script.Parent
local shopButton = gui:WaitForChild("ShopButton")
local shopPanel = gui:WaitForChild("ShopPanel")
local closeButton = shopPanel:WaitForChild("CloseButton")

shopButton.Activated:Connect(function()
	shopPanel.Visible = not shopPanel.Visible
end)

closeButton.Activated:Connect(function()
	shopPanel.Visible = false
end)

Activated fires for mouse clicks, taps and gamepad presses, so it works across devices. Anything that changes data (spending coins, granting items) must be checked on the server through a RemoteEvent. The client should only ask. The full purchase flow is in our Roblox shop GUI guide.

Step 6: Style it so it looks like your game

  • Pick 2–3 colors that match your thumbnail and icon, plus one accent for primary buttons.
  • Use UIGradient for depth and UIStroke for readable outlines.
  • Use one font family across the UI.
  • For icons and decorative art, upload images and show them in ImageLabels.

Roblox shop UI example with item cards, prices and a buy button A pet shop layout: title, grid of cards, one clear primary action.

Step 7: Test on phones and tablets

Press Play, then open the Device Emulator (Test → Device) and try a phone, a tablet and a large monitor. Check that:

  • Nothing is clipped or overlapping.
  • Buttons are big enough to tap and not under the thumbstick or jump button.
  • Text is readable on the smallest screen.

Mobile layout with the reserved touch-control zones highlighted Keep your buttons out of the default touch-control zones. Image: Roblox Creator Docs, CC BY 4.0.

A faster first draft

Placing and sizing a dozen frames by hand is where most of the time goes. Game Thumb's Roblox UI Maker takes a short brief ("a pet shop with six item cards, coin balance and a buy button") and lays out the Frames, TextLabels and TextButtons for you in the browser. You can drag, retype and recolor them, check the Desktop, Tablet and Mobile previews, then Export Luau and run it in Studio's Command Bar to get the real ScreenGui in StarterGui. From there you continue at Step 5. It's on the Starter plan and above, and each generation costs 1 credit (pricing).

Game Thumb Roblox UI Maker turning a short prompt into an editable layout A one-line brief becomes an editable layout of real GUI objects.

FAQ

How do I make a UI in Roblox Studio? Insert a ScreenGui into StarterGui, add Frames, TextLabels and TextButtons inside it, size them with Scale, then add a LocalScript to handle clicks.

How do I make a GUI open when I click a button? Keep the panel's Visible property false, then toggle it in the button's Activated event from a LocalScript.

Do I need to script to make a Roblox UI? Not to build the layout. You need a LocalScript for buttons that do something, and server code for anything that changes player data.

How do I make Roblox UI look good? Consistent colors and font, rounded corners and outlines, one primary action per screen, and real icons as ImageLabels. Our Roblox UI design ideas show ten common screens.

Can I make Roblox UI on mobile? No. Building UI requires Roblox Studio on a Windows or Mac computer.

Sources