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
| Object | What it does |
|---|---|
| ScreenGui | The container for on-screen UI. Lives in StarterGui; Roblox copies it into each player's PlayerGui when they spawn. |
| Frame | A box. Panels, cards and backgrounds. |
| TextLabel / TextButton | Text you show / text you can click. |
| ImageLabel / ImageButton | Your uploaded images (icons, art), shown or clickable. |
| UICorner, UIStroke, UIGradient | Rounded corners, outlines and gradients on a frame or button. |
| UIListLayout, UIGridLayout, UIPadding | Automatic arrangement and spacing of children. |
| LocalScript | Client code that reacts to clicks. |
Step 1: Add a ScreenGui
- In the Explorer, hover over StarterGui, click +, and insert a ScreenGui. Rename it
MainUI. - Leave
ResetOnSpawnon if the UI should reset when the player respawns; turn it off for persistent HUDs.
Step 2: Build the HUD with Scale
- Inside
MainUI, insert a Frame namedCoinCounter. - Set
AnchorPointto(1, 0)andPositionto{1, -16}, {0, 16}so it sits in the top-right corner with a small margin. - Set
Sizeto{0.15, 0}, {0.07, 0}: 15% of screen width, 7% of height. - Add a UICorner (CornerRadius
0, 12) and a UIStroke for an outline. - Inside it, add a TextLabel with
Size{1, 0}, {1, 0},BackgroundTransparency1,TextScaledon, 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.
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
- Insert a TextButton named
ShopButtoninMainUI. 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. - 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. SetVisibleto false. - 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.
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.
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).
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
- Roblox Creator Docs: UI: GUI objects, containers and layout overview.
- Roblox Creator Docs: Position and size: UDim2, Scale and AnchorPoint.
- Roblox Creator Docs: List and grid layouts: UIListLayout and UIGridLayout.
- Roblox Creator Docs: Buttons: TextButton, ImageButton and the Activated event.