Skip to content
Back to skills

Roblox Ui Layout

ASecurity

Use when placing or sizing any HUD, button, panel or menu in a Roblox game for phone, tablet, desktop and console: our one layout standard with Roblox's reserved zones in pixels (top bar, thumbstick, jump button, hotbar, chat, player list), safe insets, Scale vs Offset vs UIScale, touch and text floors, orientation, console TV-safe area and a device check script. Also when a button sits under the thumbstick, jump button or top bar; UI is cramped on phones, lost on PC or huge on a TV; a notch ...

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 3, 2026
ai-agentsrustgoreactawstestingapiperformance

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add RoDesignerAI/roblox-skills --skill roblox-ui-layout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Roblox Ui Layout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Roblox Ui Layout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rodesignerai-roblox-ui-layout/badge)](https://www.skillsdirectory.com/skills/rodesignerai-roblox-ui-layout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: roblox-ui-layout
description: "Use when placing or sizing any HUD, button, panel or menu in a Roblox game for phone, tablet, desktop and console: our one layout standard with Roblox's reserved zones in pixels (top bar, thumbstick, jump button, hotbar, chat, player list), safe insets, Scale vs Offset vs UIScale, touch and text floors, orientation, console TV-safe area and a device check script. Also when a button sits under the thumbstick, jump button or top bar; UI is cramped on phones, lost on PC or huge on a TV; a notch cuts a panel; choosing ScreenInsets or IgnoreGuiInset; enabling portrait; adding gamepad support; when judging phone UI from a desktop capture or driving Studio's Device Simulator (`StudioDeviceSimulatorService`); when a TextBox meets the on-screen keyboard; before calling any UI done. The genre look (stud chunky) stays in roblox-ui-genre-studs and fonts in roblox-ui-typography; on placement, sizes and floors this skill wins."
last_reviewed: 2026-11-20
sources:
  - Roblox client scripts, mirror MaximumADHD/Roblox-Client-Tracker branch roblox at b0b3ae8 (Studio 0.746, 2026-11-03): PlayerModule ControlModule TouchJump.lua, DynamicThumbstick.lua, ClassicThumbstick.lua; CoreScripts BackpackScript, PlayerList, EmotesMenu, TopBar Constants.lua (Studio 0.745 install)
  - https://create.roblox.com/docs (creator-docs main 76167c1, 2026-11-03): ScreenGui, ScreenInsets, SafeAreaCompatibility, GuiService (GetGuiInset, TopbarInset, GetInsetArea, ViewportDisplaySize), UIScale, UISizeConstraint, UITextSizeConstraint, TextLabel.TextScaled, input/mobile, production/publishing/cross-platform, console guidelines, ui/adaptive-design, studio/testing-modes (Device Emulator)
  - DevForum staff posts on experience controls (t/2567355, 2023-08-28; 2024-09-17 and 2024-10-15 live), notched screen support (t/2074324), GuiInset timing (t/2973508), platform-integrated chat (2026-10-21)
  - creator docs input/mobile, production/game-design/design-for-roblox, performance-optimization/test-on-hardware (mobile majority, read 2026-11-12); PocketGamer.biz 2024 platform split (press); GameAnalytics 2026 Roblox Benchmark Report (device combinations)
  - Roblox built-in Studio MCP skill rbx-device-simulator-lua (StudioDeviceSimulatorService, read 2026-11-12); RoDesigner phone UI spec (same 23 frames, 2026-11-12)
  - phone HUD sizes measured on 23 in-play phone HUD frames from 20 top games (2026-11-09; frames private, numbers and method only)
  - Studio 0.747 Device Simulator measurements, 2026-11-12 (safe frames, touch controls and thumbstick input on preset devices; details in roblox-ui-mobile); RoDesigner research library, 2026-11-12 (45 phone HUD frames from 29 games, 58 framed phone panels from 22 games; frames private)
  - https://create.roblox.com/docs/reference/engine/classes/ChatWindowConfiguration (AbsolutePosition, AbsoluteSize, read 2026-11-13); default chat window box measured in Studio 0.747, 2026-11-13
  - RoDesigner kit lint 0.1.24 format doc (transient effects judged at full scale, KitMinScale; read 2026-11-13) and one game's effect measurements relayed by RoDesigner (2026-11-13)
  - UIPadding and CanvasSize in a ScrollingFrame measured in Studio 0.747 (Edit), 2026-11-14; https://create.roblox.com/docs/reference/engine/classes/ScrollingFrame (AbsoluteWindowSize, read 2026-11-14); RoDesigner kit lint 0.1.28 rule texts and its comparison with the sweep (relayed by RoDesigner, 2026-11-14)
  - https://create.roblox.com/docs/release-notes/release-notes-742 and -748 (Pending entries, read 2026-11-20); Studio MCP tool list (get_roblox_skill, read 2026-11-20)
  - original (zone map, sizes marked judgment; ui_device_check.luau rewritten as a Device Simulator sweep and tested 2026-11-12 in Studio 0.747, Play and Edit)
  - RoDesigner tool guide (`design_guide` topic `tools`), kit pack list and rodesigner.com (read 2026-11-30)
---

# UI layout standard (phone, tablet, desktop, console)

One standard for every genre. The genre skills set the look (pick it first: `roblox-game-pipeline` section 3, step 4, style cards and a free Studio mockup; then `roblox-ui-genre-studs`, `roblox-ui-genre-scifi` or the UI rules in `roblox-engine-2026`); this one sets where things go and how big they are. Coordinates below are Roblox UI px inside the CoreUI-safe frame (below the top bar, inside notches), which is where a default ScreenGui draws.

## 0. Facts behind the standard

- Who plays where: "The majority of Roblox sessions are played on mobile devices", and "The majority of Roblox users play on a mobile device, so it's wise to design your user interfaces (UI) and user experience (UX) around mobile devices first" (docs `input/mobile`, `production/game-design/design-for-roblox`). Most of them are on lower-spec phones; Android is about 65% (docs `performance-optimization/test-on-hardware`). Roblox's 2025-26 filings and letters give no platform split; a press figure for 2024 is 80% mobile, 17% PC, 3% console (PocketGamer.biz, C). Yet 44% of players use both phone and PC and about 85% touch PC at least once (GameAnalytics 2026). So: design for the phone first, check desktop on every change, treat console as a checked extra.
- Phone px are device-independent: phones report about 160 dpi px (an iPhone X 2436x1125 screen reports 812x375, staff 2018). A px looks about the same size on a phone at 30 cm and a 1080p monitor at 60 cm (our arithmetic). That is why Roblox's own UI uses the same px on both and x1.5 only on console (source: UIBlox tokens). A TV at 3 m needs that x1.5.
- A phone's safe frame is small. Measured on Studio's presets in Play (2026-11-12): 705x280 on the Samsung Galaxy A06 (800x360; every Android phone preset is 360 px tall, and the A16 and S25 Ultra give 685x280), 750x323 on iPhone 17 Pro (874x402), 666x316 on the 667x375 iPhone 7, a size now about 1% of phone traffic (`roblox-ui-mobile` sections 0-1). The docs' notched phone gives 733x313 (851x392 minus 59 px each side, 58 px top bar, 21 px bottom). A HUD drawn on a 1080p desktop covers about 3x more of the phone screen. On a real iPhone with a Dynamic Island, in landscape, the home indicator overlapped a bottom-centre line that sat 4 px from the screen bottom inside the `CoreUISafeInsets` frame (field note, 2026-11-09, unlike the docs' 21 px): read the safe frame's `AbsoluteSize` on the target device, and keep bottom-centre touch UI clear of the bottom edge (that game chose 14 px in Studio's device emulation, not yet checked on the phone).
- Roblox's small-screen breakpoints: touch controls switch from small to large when the safe frame's short side is over 500 px. Core UI (chat, player list, emotes) treats a touch screen as small when the viewport is under 500 px tall or 700 px wide.

## 1. Reserved zones (no buttons inside, except where a row says otherwise)

| Zone | Phone (short side 500 px or less) | Tablet, large touch | Desktop | Console |
|---|---|---|---|---|
| Top bar (outside the safe frame) | 58 px strip. All Roblox controls are left-aligned: menu button plus unibar, 44 px cells, up to about 350 px wide on phone landscape and possibly the full width in portrait. With the default controls, Studio measured 164 px plus a 16 px gap (RoDesigner, 2026-11-11): read the real width from `GuiService.TopbarInset` (section 3) instead of a constant | same | 58 px | 87 px (58 x 1.5) when the new controls are on |
| Thumbstick ring (default dynamic stick) | centre 66 px from the left and 56 px from the bottom, 74 px wide. Keep box: 110 x 100 px bottom-left. It is a first-touch hint, but the corner is where the thumb lands: a button here is a last resort (top games: 1 of 16 frames that show the stick) | centre (132, bottom - 112), 148 px wide. Keep box: 215 x 195 px | none (keyboard) | none |
| Thumbstick start area | any touch that begins in the left 40% x bottom 2/3 starts the stick (portrait: full width x bottom 40%). Readouts may sit there freely. Buttons may too when the right side and top band are full, under the conditions below the table | same | none | none |
| Jump button | 70 x 70 px, 25 px from the right, 20 px from the bottom. Keep box: 95 x 90 px bottom-right | 120 x 120 px, 50 px from the right, 90 px from the bottom. Keep box: 170 x 210 px | none | none |
| Backpack hotbar (only when the player has Tools) | bottom centre, 200 x 70 px (3 slots, touch and width under 1024) | 655 x 70 px (10 slots); open arrow up to 110 px above the bottom | 655 x 70 px | 1055 x 110 px |
| Chat window | hidden at start on small touch screens; opens top-left under the bar | top-left under the bar | top-left: 8 px in and 12 px under the bar, width the smaller of 0.4 x the frame width and 475 px, a message list 0.25 x the safe-frame height plus a 45 px input bar under it (default `ChatWindowConfiguration`, measured in Studio 0.747 on safe frames 1309x649, 1365x710, 1919x1021 and 1179x761, 2026-11-13: 483 x 219 px on the first) | disable chat (docs) |
| Player list | hidden; a centred modal from the menu | top-right under the bar | top-right, about 166-210 px wide, half the screen tall (legacy values) | centred modal |
| Emote wheel | centred, 150-300 px | centred, 200-400 px | centred | centred, 320-640 px |
| Health bar | top-right of the top strip, 125 x 20 px (80 x 20 when the width is 393 px or less), only after damage | same | same | 220 x 16 px |

- Buttons in the thumbstick start area. Tested (Studio 0.747, Galaxy A06 preset, 2026-11-12): a passive `Frame`, `TextLabel` or `ImageLabel` does not block the stick, a `GuiButton` or an `Active` frame does (the touch never starts the stick; a tap fires the button), and a stick drag that ends on a button does not fire it. Top phone games put buttons there in 32 of 45 HUD frames (22 of 29 games; simulators and tycoons 13 of 16), as a left-edge column or in the upper band, with all game UI covering a median 8% of the area (p75 17%, max 33%). So (judgment): allowed as a left-edge column or upper-band stack, at most about a quarter of the area under buttons, the ring keep box clear, and only buttons that are safe to hit by mistake (they open a menu or a prompt; they never spend or confirm on one tap). Movement-critical games (obby, combat) keep it clearer than simulators. Details: `roblox-ui-mobile` section 3.
- Touch controls appear only when `UserInputService.PreferredInput` is Touch, not when `TouchEnabled` is true (a touch laptop with a mouse gets none). Branch UI on `PreferredInput`, never on device guesses.
- The jump button moves between 70 and 120 px layouts and disappears when jumping is disabled. Place buttons relative to it, not at fixed px near it.
- Platform-integrated chat (opt-in since 2026-10, automatic from February 2027) renders chat itself; a custom chat goes in a `TextChannelWindow` whose size and place you set.

## 2. Zone map for game UI (landscape)

| Where (safe frame) | Put | Rule |
|---|---|---|
| Left column, from about 20% to 60% of the height | menu buttons (shop, inventory, pets), 3-4 at most | Stop above the thumbstick keep box. Below a third of the height the column is in the thumbstick start area, which section 1 allows for a left-edge column. On a 280 px phone frame, three 44 px buttons from the top end at 144 px, 36 px above the keep box (tested) |
| Bottom-left, above the keep box | currency and stat readouts (not tappable) | Stack upward from 110 px above the bottom on phones, 200 px on large touch |
| Bottom-right, around the jump button | action buttons (attack, ability, interact) | On an arc left of and above the jump button, sized 0.8-1x of it (docs sample places buttons relative to the jump button) |
| Right column, above the jump keep box | offers, secondary buttons | Out of the player list's column on desktop, or disable the player list |
| Top centre, under the bar | one objective or timer line, toasts | One line, short text |
| Top strip right (`TopbarSafeInsets` ScreenGui) | small status chips | Only through that ScreenGui; it can be zero wide (portrait) |
| Bottom centre | hotbar if the game gives Tools, else the main prompt | Never both. A game bar sits between about x 0.35 and 0.70 of the width and is at most 0.15 vh tall (13 phone frames, measured 2026-11-09) |
| Centre | panels and modals, closed by default | A panel is a centred card about 0.45 of the screen width and 0.72 of its height (median of 58 framed phone panels from 22 top games, width 0.17-0.78; none covers 90% of both axes; the RoDesigner kit lint warns over 0.67 wide and fails over 0.80), with the game dimmed or blurred behind it (one owner's review, 2026-11-11; top games: blur 26, dim 7, untouched 30 of 82 frames). Sizes per device, what the HUD does and a tested open and close module: `roblox-ui-mobile` section 4. A panel fits the phone safe frame with a scroll; close button 44 px or more inside the safe frame. If it still covers the thumbstick or jump keep box, set `GuiService.TouchControlsEnabled = false` while it is open and restore it on close (field, 667 x 375 phone) |

Reach: a button 40% below the top is easy on a phone and almost unreachable on a tablet (docs). Frequent buttons go near the bottom corners above the keep boxes; rare ones go into a menu on small screens (docs adaptive design).

See the game: on a phone, measure the share of the centre 50% x 50% box that visible HUD covers at idle (the union of their rects), not only overlaps between elements. A desktop-style bottom cluster plus 2x2 offer cards covered about 40% of it and the owner rejected the HUD; moving groups to the edges and shrinking them got it near 1% (field observation, 2026-11).

Measure the whole HUD too: the union of the visible HUD rects at idle as a share of the full screen, top bar included (count plate-less text by its `TextBounds`, glass plates as solid). One owner rejected a HUD covering 22% of a 1920x1080 screen as "covers too much" and accepted about 7%; the same HUD covered 16.5% of a 667x375 phone because of the phone floors this skill set then (field note, 2026-11-08).

Phone HUD budgets. The top-game numbers are measured on 23 in-play phone HUD frames from 20 top games (2026-11-09); the thresholds are judgment set from them. Every share is of the whole screen (800 x 360 on the Galaxy A06 preset), which is what the frames show and what the sweep measures. The same UI reads about 1.2 times higher as a share of the camera viewport (705 x 338) and about 1.5 times higher as a share of the safe frame (705 x 280), so say which rectangle a number refers to. KitLint 0.1.16 (kit-v0.1.16-rc) judges the phone budgets PH-1..PH-8 and PH-11 as shares of the whole device screen (Galaxy A06 800x360), the same basis as the skill's measured numbers; PH-10 keep boxes, OFFSCREEN and SAFE_AREA use the camera viewport (705x338). KitLint is the screen linter of RoDesigner ([rodesigner.com](https://rodesigner.com/?utm_source=roblox-skills&utm_medium=skill&utm_campaign=roblox-ui-layout), the Roblox design MCP from the makers of these skills), free as its kit pack `lint` (section 6).

| Budget (phone, in-play HUD at idle) | Target | Warn | Fail | Top games |
|---|---|---|---|---|
| HUD coverage: union of game UI rects, without Roblox core UI, touch controls, toasts and world labels | 11% | over 16% | over 20% | median 10.6%, p25-p75 7.3-15.9%, max 20.3% |
| Centre 50% x 50% box covered | 0% | over 2% | over 10% | median 0%, p75 1.4% |
| Largest clear rectangle around the centre, share of the screen | 38% or more | | under 38% | median 53.8%, p25 38.4% (same frames, RoDesigner lint PH-8) |
| Visible menu buttons: every tappable HUD button, offer tiles and boost chips included; hotbar slots and the touch action buttons beside the jump button excluded (how the top-game frames were counted) | 5 (8 in simulators) | over 9 | over 12 | median 5, p75 8.5 |

Horror and RPG HUDs that show vitals or a party list may sit in the warn band (their frames ran 18-20%). Menu buttons beyond 8 go into one "more" drawer button. On a phone, an offer card becomes an icon button of about 0.09 vh with a price badge, and boost or timer chips merge into one stacked chip in the top band (judgment).

A card that opens when the player walks near something (an action or build card) goes beside the play area, never over the spot where the action happens. On phone and tablet, let it take a HUD column's slot and hide that column while the card shows; on desktop it fits under the column. In one game that cut the centre box covered while the card shows from 56% to 9.3% on a phone (field note, 2026-11-08).

Hiding a HUD side while such a card shows (one tested recipe, field note 2026-11-09):
- Give each ScreenGui root one invisible full-size layer frame per side and parent that side's elements into it, so the layout code keeps owning their `Position` and `Size`. Slide only the layer.
- Timing used: hide 0.22 s Quad In, show 0.3 s Back Out, with a small stagger between layers.
- Set the layer's `Visible` to false when the hide ends, so nothing hidden takes input and a re-layout while hidden cannot pop an element back.
- Measure the slide distance again on every show.
- Call show from every close path: the close button, walking away, death, losing the target. With `GuiService.ReducedMotionEnabled`, hide and show at once.

Portrait only when the game sets `StarterGui.ScreenOrientation` to `Sensor` or `Portrait` (default `LandscapeSensor`). In portrait the stick takes the bottom 40% and the top strip may be full: menu buttons go in a bottom row above the stick zone or behind one menu button.

Phone details from the docs (read 2026-11-12):
- "Show only the most vital information during active gameplay" (`ui/position-and-size`). A situational action is a `ProximityPrompt`, not a permanent button; touch players can always tap a prompt, whatever `ClickablePrompt` says. A menu button can expand into its sub-buttons only when selected, and action buttons can swap by context (`production/game-design/ui-ux-design` examples).
- Long press is `GuiButton.SecondaryActivated` (right-click on desktop).
- A `ScrollingFrame` bounces on touch by default; set `ElasticBehavior` to `Never` where that fights a tight list.
- Never rely on color alone: add a symbol or text (`projects/cross-platform`).
- Pinch and swipe gestures must not fight the gameplay controls (`performance-optimization/test-on-hardware`).

## 3. Insets

- Interactive UI: keep the default `ScreenInsets = CoreUISafeInsets`. Do not set `IgnoreGuiInset = true`: it switches to `DeviceSafeInsets` (under the top bar).
- Full-screen backgrounds and fades: `ScreenInsets = None` in their own ScreenGui with no buttons. Set `SafeAreaCompatibility = None` on new ScreenGuis (docs discourage the legacy fullscreen extension).
- A full-size Frame in a default ScreenGui stops at the safe frame and looks like a box floating in the screen: on the Galaxy A06 preset it left 47 px on each side, 58 px at the top and 21 px at the bottom uncovered, with `SafeAreaCompatibility` at its default too; with `IgnoreGuiInset = true` the sides and the bottom stay uncovered (tested 2026-11-12 in the Device Simulator; not checked on a phone). So every layer meant to cover the screen goes in the `ScreenInsets = None` ScreenGui: panel dims, fades, letterbox bars, edge flashes, vignettes, loading backgrounds. Buttons and text in that ScreenGui stay inside the device safe area, or a notch can cover them. Release notes 742 list a fix for the Studio Mobile Emulator not respecting `DeviceSafeInsets` as Pending (read 2026-11-20); the `IgnoreGuiInset` numbers above are from Studio 0.747 and were not re-measured, so recheck them once the fix shows as Live.
- Never hard-code 36 or 58: `GetGuiInset()` returns 0 for about 0.2 s after join and can change without a signal (staff). For the top strip, use a `TopbarSafeInsets` ScreenGui and react to its `AbsoluteSize`, or the property-changed signal of `GuiService.TopbarInset`.
- Slide-in panels: `ClipToDeviceSafeArea` (default true) clips them at the notch; set it false on that ScreenGui and add an offset, or tween to a placeholder.
- iOS landscape insets are symmetric (59 pt on Dynamic Island phones) although the cutout is on one side only, at mid-height and about 48 pt deep, so the side without it shows a wide empty margin (field note, 2026-11-09, simulated viewport in Studio, not checked on a phone). Measure the spare as the width of a `ScreenInsets.None` probe minus a `CoreUISafeInsets` probe, divided by 2. Turning the phone moves the cutout to the other side, so let only corner HUD reach into the spare, on both sides, keep the mid-height band clear, and set `ClipToDeviceSafeArea` false on that ScreenGui (judgment). Mid-height HUD that must use the spare stays at least the island's offset plus depth plus a few pt from the edge on both sides: about 52 pt on an iPhone 15 Pro Max (11 pt + 37.33 pt from published sizes, not tested on a phone).

## 4. Size and scale

- Position with Scale plus `AnchorPoint` into the zone (docs). Size content (buttons, icons, text) in Offset px, because phone px are physically stable; size containers (panels, lists) in Scale with a `UISizeConstraint` min and max. The docs' cross-platform page recommends Scale for sizing and a 2024 staff designer post does too; staff engineers explain why content stays in Offset (device-independent px, about 160 dpi; Scale-only text comes out a few px high on phones; DevForum t/122825, 2018, and t/4009681, 2025). This standard follows the engineers for content and the docs for containers. Offset takes whole px only, so a slow pixel tween steps visibly on high-density phones; move by Scale or a `UIScale` for smooth motion (staff, t/4009681).
- One `UIScale` at the root of each ScreenGui, from `GuiService.ViewportDisplaySize`: Small 1, Medium 1, Large 1.5 (Roblox's own scale). Listen to its change signal. Tablets are the exception: on a touch device whose safe frame's short side is over 500 px use 1.7, because `ViewportDisplaySize` is Small or Medium there while top games keep the phone's share of the screen and the engine steps its touch controls by 1.7 (judgment from a weak sample; recipe and numbers in `roblox-ui-mobile` section 6).
- A window over the HUD (a shop, a quest list with a detail card) is not sized by that class factor. Size it by its share of the screen on tablet and desktop, up to 0.86 of the width or 0.8 of the height (whichever comes first), from a larger layout than the phone's: a build that scaled its 280 px tall phone window by 1.25 on a 1280 x 696 desktop view got a window of 52% x 47% with 11 px row titles, and two blind judges put it 18 points (of 100) under an earlier build, naming the size first (2026-11-21, one comparison). The fit, the two layouts and their px: `roblox-ui-mobile` section 4 (`Kit.stage`).
- Offer a player "UI size" setting (x1, x1.15, x1.3). Grow a Garden ships one; the factors are community values.
- A chunky genre may raise Medium (desktop) to 1.25 for its look (judgment, compare screenshots first). Do not enlarge phone HUDs past the sizes below: a 1080p design scaled with a phone floor (k = max(viewport height / 1080, 0.55)) came out 1.4-1.7x the top-game sizes, covered 23-38% of a 667 x 375 phone, and one owner rejected it as too big to see the game (field note, 2026-11-09).
- Phone sizes, landscape. Measured on 23 in-play phone HUD frames from 20 top games (2026-11-09). vh = share of the viewport height; px are vh x 375, a 667 x 375 phone. On the 360 px tall Android class multiply vh by 360 (0.09 vh is 32 px); judge on the Galaxy A06 preset (section 6). Offset px taken from this column stay inside the ranges on phones from 360 to 430 px tall.

  | Role | Target | Range | Source |
  |---|---|---|---|
  | Menu or HUD button, visible size | 0.09 vh (34 px) | 0.06-0.105 vh | measured: median 0.088, p25-p75 0.058-0.103 |
  | Its hit area | 44 x 44 px or more | | Roblox top bar cells are 44 px (client source); WCAG 2.1 target size (AAA) and Apple's HIG default are 44; Android asks 48 dp with 8 dp between targets; the docs' UI tutorial cites 9 x 9 mm (about 57 px) for frequent buttons |
  | Touch action button (attack, sprint, ability, use) | 0.17 vh (64 px) | 0.12-0.20 vh, never under 44 px | measured median 0.168; the Roblox jump button measured 0.172 vh; docs: frequent buttons 9 x 9 mm, about 57 px |
  | HUD label or timer | TextSize 12, bold, with a stroke or on an opaque plate | cap height 0.017-0.028 vh | measured cap height (median 0.022 vh, 8 px); TextSize assumes cap = 0.7 x TextSize, not measured |
  | Currency number | TextSize about 14, bold, with a stroke or on an opaque plate | cap height 0.022-0.038 vh | same (median cap 0.027 vh, 10 px) |
  | Currency row height | 0.06 vh (22 px) | 0.04-0.086 vh, tycoon up to 0.12 | measured: median 0.059 |
  | Gap between buttons | 0.02 vh (8 px) | 0.012-0.046 vh | measured: median 0.021 |
  | Edge margin | sides 0.035 vh (13 px), bottom 0.01 vh (4 px) | | measured medians (same frames, RoDesigner) |
  | Panel body text | 14 px | | Roblox chat default `TextSize` 14 |
  | Hard floor | `MinTextSize` 9 | | docs |

  The 12 px condition is judgment: the frames gave cap heights only, and nobody tallied which labels were bold or stroked. Weight is what keeps text this small legible; the stroke or the plate gives it contrast (over the 3D world a label needs a stroke or a shadow at any size, `roblox-ui-typography` section 3). So a bold label on an opaque button needs no stroke, and a regular-weight label needs 14 px even with one.

- Short-lived effects meet the same floors at their full size (judgment, 2026-11-13): text the player must read (a flying "+N", a toast, the price on a pop-up button) is 12 px bold with a stroke or on a plate, or 14 px; a tap target is 44 px. Show a flying number at full size long enough to read before it starts to shrink or fade. An effect that shrinks on purpose over its life (a balloon that drains like a timer) meets the floors at the smallest scale at which it must still be read or tapped; the visible part may shrink further inside a hit area that does not, and a closing pop of about 0.2 s or less does not count. One game's numbers (Galaxy A06 preset, 2026-11-13): a 74 x 122 px balloon that shrinks to 0.6 over 6 s ends at 44 x 73 px and passes, while its 14 px price ends at 8.4 px and fails. Animate an effect with a `UIScale` on or under its root, not with `Size` or `TextSize` tweens: a checker can then tell the design size from the animation phase, the layout does not reflow, and a tweened `TextSize` renders new glyphs at every step (`roblox-ui-typography` section 4).
- Split the look from the hit area: make the tappable `GuiButton` transparent and 44 px or more, with the visible icon inside it at the size above. In a packed column, grow the hit areas into the gaps and margins until they meet: there the pitch (centre to centre) sets the hit size along the column, so keep it at 40 px or more (judgment: top games pack 33 px buttons with 8 px gaps, a 41 px pitch). Small status chips with a tooltip work the same way: a 44 px hit area larger than the chip, and the tooltip opens on tap on touch and on hover on desktop (field note, 2026-11-11).
- A menu button goes over 0.12 vh only when the HUD shows 2 or fewer (obby HUDs ran 0.147 vh with 1-2 buttons).
- How far to trust these numbers: tower defense, +1/clicker, arena and RPG had 2 frames each (examples, not norms); boxes were hand-measured to about 0.01 of the viewport (about +-10% on a button); nothing was checked on a real phone.
- Prefer `AutomaticSize` with `TextWrapped` over `TextScaled` (docs): TextScaled ignores the player's text-size setting. Release notes 748 list a fix for `AutomaticSize` text sometimes truncated after a move to a display of another pixel density or a UI scale change as Pending (read 2026-11-20): until it is Live, recheck `TextFits` after such a change instead of trusting the first layout (judgment).
- Never let wrapped text take its width from a container that takes its size from that text: in one game both collapsed to one letter per line, and `AutomaticSize` on a plate holding rotated skin pieces grew without end (field note, 2026-11-08). Measure the content at its natural width (in an invisible frame with a large Offset size) and set the plate's `Size` from that measurement, divided by the plate's `UIScale` factor. The same growth hit small chips inside a `UIListLayout` row (field note, 2026-11-11).
- Padding in a `ScrollingFrame` (measured in Studio 0.747, Edit, 2026-11-14: a 300 x 200 px frame, `UIPadding` 6 top, 10 left, 20 bottom, 14 right, five 100 px rows in a `UIListLayout`):
  - Leading padding (top, left) moves where the content starts: at `CanvasPosition` 0 the first row sat at (10, 6). Trailing padding (bottom, right) sits at the end of the canvas, not at the window edge: with `AutomaticCanvasSize` the canvas was 526 px (the rows plus both paddings), at the end of the scroll the last row stopped 20 px short of the window, and at the top the rows ran on to the window's bottom edge. So count the rows that fit from the window less the leading padding only (the RoDesigner kit lint's first-fit test does the same from 0.1.28).
  - Across the scroll axis rows are inset by both paddings, measured from the canvas, not from the window. `AbsoluteWindowSize` is the frame less a visible scroll bar (docs), but rows did not move or shrink when a 12 px bar showed (window 288 px wide; a full-width row stayed 276 px with the padding and 300 px without it, 12 px of it under the bar). A `PaddingRight` at least as large as `ScrollBarThickness` keeps the rows clear of the bar.
  - `CanvasSize` Scale is relative to the ScrollingFrame's parent, not to the frame: `UDim2.new(1, 0, 0, 600)` gave a 700 px wide canvas for the 300 px frame in a 700 px parent (500 px in a 500 px parent), and the rows came out 676 px wide. Keep Scale 0 on the axis that must not scroll, or use `AutomaticCanvasSize`.
  - Padding offsets scale with an ancestor `UIScale`, like any Offset (first row at (20, 12) under a `UIScale` of 2).

## 5. Console

- TV-safe area: keep UI inside the middle 90% (96 px left and right, 54 px top and bottom at 1920x1080, docs illustration). Xbox reports 1080p px with no dpi scaling, so `UIScale` 1.5 on Large.
- Every control is reachable with the d-pad plus select and back (`Selectable`, `NextSelection*`); set `GuiService.SelectedObject` when a menu opens. Disable the chat window. Hide touch-only and mouse-only buttons and show gamepad glyphs (`InputActionLabel` or `UserInputService:GetImageForKeyCode`).

## 6. Check every UI change at these sizes

| Studio preset | Screen (UI px) | Safe frame in Play | Why |
|---|---|---|---|
| Samsung Galaxy A06 | 800 x 360 | 705 x 280 | smallest common phone frame, the largest Android class, small controls |
| iPhone 17 Pro | 874 x 402 | 750 x 323 | notch insets (62 px each side) |
| Amazon Fire HD 10 (2023) | 960 x 600 | 959 x 541 | small tablet, large controls |
| iPad 10th Generation | 1180 x 820 | 1179 x 761 | tablet reach, Medium display size |
| Average Windows | 1366 x 768 | 1365 x 710 | small laptop, chat and player list |
| HD 1080 | 1920 x 1080 | 1919 x 1021 | the most common desktop |

Every change: Samsung Galaxy A06, iPhone 17 Pro and iPad 10th Generation. Before done: all six (the sweep script's list). Before release: add iPhone 16 Pro Max (956 x 440) and a real phone. Why these, and why not an old small preset such as iPhone 7: `roblox-ui-mobile` sections 0-1. Portrait only if the game allows it; console only if it ships there (section 5, the Xbox preset, by eye).

**Hard rule: phone and tablet layout is judged only in a Studio Device Simulator viewport**, either a preset device or a custom device of the exact size. Never draw a device outline, safe-area lines or zone boxes over the desktop viewport or a desktop capture to estimate a phone or tablet's proportions, sizes, coverage or placement, and never report such a picture as a phone or tablet check. Desktop captures judge desktop only. Results come from Play, never Edit (Edit draws no top bar, so the frame is 58 px taller), and each one names its preset and frame size: a "phone" number from a viewport whose short side is over 500 px is not a phone result. Every phone or tablet number in a review (HUD coverage, centre box, button size, overlap) comes from a simulator capture or from `AbsolutePosition`/`AbsoluteSize` read while the simulator holds that device.

1. Switch Studio's viewport to the device in the Device Simulator. It gives the real viewport, insets and keyboard height, and scripts that read `ViewportSize` re-run.
   - By hand: the device picker in Studio's toolbar (a device name such as "iPhone 17 Pro", plus laptop, gamepad and headset buttons).
   - From an agent: `StudioDeviceSimulatorService` through `execute_luau`, in Edit or, during Play, with datamodel Client (plugin context; tested 2026-11-12 in Studio 0.747). Source: Roblox's built-in Studio MCP skill `rbx-device-simulator-lua` (load it with the MCP `get_roblox_skill` tool, `skill` in older builds, for the full API and its test, compare, orientation and playtest workflows). Wrap every call in `pcall`:

     ```luau
     local svc = game:GetService("StudioDeviceSimulatorService")
     local function use(name: string): Vector2
     	for _, id in svc:GetDeviceListAsync() do -- ids such as "iphone_17_pro": match the display name, never hard-code
     		if svc:GetDeviceInfoAsync(id).Name == name then
     			svc:SetDeviceAsync(id)
     			task.wait(0.2) -- the viewport updates async
     			return workspace.CurrentCamera.ViewportSize
     		end
     	end
     	error("no device " .. name)
     end
     local ok, vp = pcall(use, "Samsung Galaxy A06")
     return if ok then tostring(vp) else vp
     ```

   - Then `screen_capture` on each device of the table. `Camera.ViewportSize` is the screen minus the notch insets (705 x 338 on the Galaxy A06, 750 x 381 on iPhone 17 Pro), not the safe frame (705 x 280, 750 x 323): the top bar takes 58 px more in Play. Both numbers are right; a tool that prints the viewport does not contradict the safe frame. A size no preset matches comes from `CreateDeviceAsync({Name = ..., Width = ..., Height = ..., PixelDensity = ...})`.
   - Exact overflow: after the switch, `AbsolutePosition` and `AbsoluteSize` are in the device's px, so read numbers instead of eyeballing. In Edit that covers StarterGui, with no top bar (the frame is 58 px taller than players get). In Play, `execute_luau` with datamodel Client reads the live `PlayerGui`, `TouchGui` included, and can switch devices mid-Play (tested 2026-11-12; the setters error on the Play server).
   - Custom devices show up in every Studio window on the machine, and the simulated device can carry over between windows (how far is not measured, `roblox-ui-mobile` section 7): read `GetDeviceAsync()` before a capture and put the device back when done.
   - Portrait only if the game allows it: `SetOrientationAsync(Enum.ScreenOrientation.Portrait)`, after a phone or tablet device is set (it errors while a desktop device is active; field note, 2026-11-12).
   - Taps and keyboard: `ScaleToPhysicalSize` scaling shows the physical size. Open the on-screen keyboard on every TextBox; the device info gives `LandscapeKeyboardHeight` (181 on iPhone 17 Pro). Move or shrink a panel while the player types with `UserInputService.OnScreenKeyboardVisible`, `OnScreenKeyboardSize` and `OnScreenKeyboardPosition` (px; zero when hidden); `TextBox.ReturnPressedFromOnScreenKeyboard` fires on mobile; set `ClearTextOnFocus` false on fields players edit (docs). Players report that a real phone shifts the view to centre a focused TextBox, which can clip one anchored top-left, and that the simulator never shifts; Android's action-button row is missing from `OnScreenKeyboardSize` (DevForum bug reports, 2023-2024, C). So keep TextBoxes centred or in the upper half, never use `TextScaled` on a TextBox, and type on a real phone once.
   - End with `StopSimulationAsync()`. A changed scaling mode is never reset by switching or stopping, so set it back yourself.
2. Device sweep: in Play, run `scripts/ui_device_check.luau` with `execute_luau` and datamodel Client. It draws nothing: it switches the simulator through the six devices of the table, reads the live `PlayerGui` on each, and returns per device the screen and safe-frame size, HUD coverage of the screen and of the centre box, buttons inside the jump keep box (error), on the resting thumbstick ring (warning), in the hotbar, chat or player list zones (warning), the share of the thumbstick start area under buttons (note, warning over 17%, error over 33%: p75 and max of all game UI in that area in top games, used as limits by judgment; buttons with the `PassThrough` attribute, `roblox-ui-mobile` section 3, are left out of it and of the ring warning), buttons under 44 px on touch, text under 14 px (12 px for bold text with a stroke or on an opaque plate), painted elements off the safe frame, a backdrop that fills an inset ScreenGui and stops short of the screen edge, buttons and text of a `ScreenInsets = None` ScreenGui that reach outside the device safe area, buttons and text of two different ScreenGuis that overlap by a quarter of the smaller one or more, and the section 2 phone budgets. Fix every `error`.
   - The chat zone on desktop is the measured default box of section 1, or the live window once it has been opened (`ChatWindowConfiguration.AbsolutePosition` and `AbsoluteSize` read 0 before the first open and keep the last size after closing); the line says "closed now" when `StarterGui:GetCore("ChatActive")` is false, and a button there is still reported because a player can open chat at any time. A game that sets `ChatWindowConfiguration.Enabled` false gets no chat zone. The player-list box stays an approximation (no API reads it).
   - It skips Roblox's own touch controls, the ScreenGui `TouchGui` under PlayerGui (thumbstick frames and the jump button), and judges the reserved zones from the zone boxes. Do the same in any check of your own that walks PlayerGui: the dynamic thumbstick frame fades its fill in while a thumb is down, and a check that runs at that moment counts it as a panel over about 18% of the screen (RoDesigner measurement, 2026-11-13; it depends on timing, not on the device). A game's own custom thumbstick is game UI and is checked.
   - Its button count includes the touch action buttons; take them off before comparing with the section 2 budget.
   - Zones come from the live touch controls (the real jump button), so tablets are checked against their 120 px controls. While a panel has hidden them (`GuiService.TouchControlsEnabled` false) the jump and thumbstick zones do not apply, and the sweep skips them.
   - Run it at idle with panels closed for the budgets, then once with every transient state up (each panel, contextual cards with their buttons, tutorial bar, prompts, toasts): one phone overlap showed only with a contextual card and the tutorial bar open (field note, 2026-11-09).
   - An element with nothing drawn on the screen (a HUD layer slid off an edge, a panel parked outside) is skipped: no button count, no size or safe-frame warning. One note names the skipped layers, so a button that is off the screen by mistake still shows up there. The sweep cuts each element the way the engine does: a ScreenGui clips its content at the device safe area unless its `ScreenInsets` is None (`ClipToDeviceSafeArea`, docs), so a layer parked in the notch strip beside the safe frame is not drawn (seen on the Galaxy A06 preset, 2026-11-12: a button 4 px past the safe frame's right edge did not show, one across the edge was cut there and is still reported as across the safe-frame edge).
   - With a full-size backdrop up (a panel's scrim), the sweep skips the phone budgets, the start-area share, the chat and player-list zones and overlaps with the layers under the scrim, and says so in a note; the scrim button itself is not counted as a HUD button, and a painted backdrop is left out of the coverage numbers, which then show the panel and whatever HUD stays on top of it; the header line says "panel open (HUD budgets not applied)". A see-through full-screen button with no scrim is reported as covering the start area.
   - Mark short-lived effects, toasts and pop-up play targets with the attribute `KitTransient = true` (the name the RoDesigner kit lint reads): the element and its children leave the coverage, overlap and safe-frame checks, while a marked button is still checked against the zones and the 44 px floor. Inside a marked effect the 44 px and text floors judge the full size (section 4): every `UIScale` on or under the outermost marked element counts as 1, so a pop or a shrink caught mid-tween is no finding; a `UIScale` above it (the layout scale) still counts, a `Size` or `TextSize` tween is judged as sampled, and one note names the effects. Mark what an effect leaves behind too (the burst when a pop-up is tapped or expires): an unmarked 0.1 s burst at the screen centre was sampled as a covered centre in one game (field note, 2026-11-13). `KitMinScale` = a number in (0, 1] on that element judges full size times that number, for an effect that shrinks on purpose (tested 2026-11-13; the RoDesigner kit lint does the same from 0.1.24). One difference: the sweep tests a marked button against the reserved zones with its box as sampled, the kit lint with its full-size box from 0.1.26, so an effect caught while small can pass the sweep and fail the lint. A second one: the sweep reads the attribute only, while the kit lint also takes some names as transient (a `Toast` or `Dim` prefix, `Confetti`, `Spotlight`, `Hole`). An unmarked toast then passes the lint and still counts in the sweep: in one game it raised the sweep's HUD coverage to 22.5% and the centre-box coverage to 43.9% (relayed by RoDesigner, 2026-11-14). Set the attribute on the toast's root and both tools agree. A clicker's permanent centre tap target takes `KitRole = "target"` (the kit lint's mark, 0.1.16): it leaves the centre-box number and still counts in the coverage. `SweepIgnore = true` takes an element and its children out of every check: only for Studio-only debug UI that players never get, never to silence a finding. A tutorial is not idle play: take the budgets outside it and read tutorial numbers as a note (judgment).
   - The 12 px floor takes bold text that has a visible stroke (a `UIStroke` on the label with `Thickness` above 0 and `Transparency` under 0.9, or `TextStrokeTransparency` under 0.9) or sits on an opaque plate (its own background, or an ancestor's background or image, at most 0.25 transparent, judgment). Bold covers the heavy one-weight display fonts FredokaOne, LuckiestGuy and Bangers, whose `FontFace.Weight` reads Regular (read in Studio, 2026-11-12); other heavy families still need a Bold weight or 14 px. Regular-weight text and bold text bare over the world get the 14 px floor.
   - A button inside a bigger active button (a small X drawn in a 44 px hit area) counts once, by the outer size.
   - The sweep waits 1 s after each device switch. UI built per device class when it is shown (a toast, a card) keeps the old class's layout after a live switch, so show that state again on each device before trusting its numbers (field note, 2026-11-12).
   - Pasting the file on every run is costly. Put it in the place as a ModuleScript (dev only: `UiDeviceCheck` is on the release gate's leftover list) and run `return require(game:GetService("ReplicatedStorage"):FindFirstChild("UiDeviceCheck"):Clone())`; requiring a clone runs the sweep again (tested 2026-11-12).
   - In Edit it checks StarterGui only, with formula zones and a frame 58 px too tall (no top bar): a first pass, not the result.
   - The RoDesigner kit lint follows three of these rules from 0.1.17 (kit-v0.1.17-rc): it reads `SweepIgnore = true` as a skip of the whole subtree (counted in its ESCAPE_MARKS), it counts FredokaOne, LuckiestGuy and Bangers as bold from the same list as the sweep, and it treats an element wholly past the device safe-area cut as hidden while a control cut across that edge gets an OFFSCREEN warning. From 0.1.20 (kit-v0.1.20-rc) it applies the same 12 px rule with the same definitions of bold, stroke and plate: under 12 px stays an error, and 12-13 px text that is bold without a stroke or plate, or stroked without being bold, is a TEXT_SMALL warning. The two tools draw the safe frame differently: the sweep takes the `CoreUISafeInsets` frame below the top bar, the kit lint (0.1.28) the whole viewport and checks the top-bar row only against the strip of the Roblox controls. So game UI drawn in the top-bar row from a default ScreenGui gets a sweep warning (outside or across the safe frame) and no lint finding (seen in one game, relayed by RoDesigner, 2026-11-14). The sweep is the one that follows section 2: that row only through a `TopbarSafeInsets` ScreenGui.
   - Kit lint 0.1.29 (relayed by RoDesigner, 2026-11-16): TAP_THROUGH warns when a tap on an empty part of a panel reaches a button behind it (`roblox-ui-mobile` section 4); NOT_AT_REST says the lint sampled a panel in the middle of its motion, so lint after the open motion ends; SLICE_CRUSHED and the `KitImageSize` attribute: `roblox-store-art-pack` section 4.
   - With the RoDesigner MCP connected, run KitLint (`get_kit_pack` pack `lint`) beside the sweep on each screen (HUD, each open panel) on its four devices (800x360, 874x402, 1180x820, 1920x1080), send the runs with `submit_lint_results` and read `get_check_summary` for a missing device; on the top-bar row the sweep's rule stands (above).
   - Clicks: in the simulator `user_mouse_input` is emulated touch and misses by the left inset, and on a preset with a top inset by that too (20 px up on iPhone 17 Pro), when given an `instance_path` (`roblox-ui-mobile` section 7).
3. Last, a real phone for thumb reach (`roblox-game-pipeline` verification).
4. These steps check placement and size, not the look: also run the look check in `roblox-engine-2026` section 2 (UI review, step 4).

Files in this skill

  • SKILL.md45 KB
  • scripts/ui_device_check.luau27.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.