What parts of a phone screen must Roblox UI avoid?
Updated
Keep buttons out of four places: the top bar with Roblox's menu buttons, the bottom-left thumbstick corner, the bottom-right jump button corner and the notch. A ScreenGui left at its default ScreenInsets, CoreUISafeInsets, already avoids the top bar and the notch. The two thumb corners are yours to clear: about 110 x 100 px and 95 x 90 px on a phone.
The four zones
Roblox documents that the default controls take part of the bottom-left and bottom-right corners on mobile. It advises against placing important info or virtual buttons there.
- The top bar: Roblox's menu and its other controls, left-aligned along the top edge.
- The thumbstick corner, bottom-left.
- The jump button corner, bottom-right.
- The notch and other camera cutouts, on the sides in landscape.
The zones in pixels
Measured in UI px in Studio's Device Simulator, landscape:
| Zone | Phone | Tablet (large controls) |
|---|---|---|
| Top bar | A 58 px strip above the safe frame | Same |
| Thumbstick ring | Centre 66 px from the left and 56 px from the bottom, 74 px wide. Keep box 110 x 100 px | Centre 132 px from the left and 112 px from the bottom, 148 px wide. Keep box 215 x 195 px |
| Where a touch starts the stick | The left 40% of the width, bottom 2/3 of the height | Same |
| Jump button | 70 x 70 px, 25 px from the right, 20 px from the bottom. Keep box 95 x 90 px | 120 x 120 px, 50 px from the right, 90 px from the bottom. Keep box 170 x 210 px |
| Notch | 62 px margin on each side on the 874x402 notched phone | No side margin on the two tablet presets we used |
The controls switch to their large size when the safe frame's short side is over 500 px. Readouts may sit in the stick area: in our test a passive label did not block the stick, while a button did.
Pick the right ScreenInsets
| ScreenInsets | Use it for |
|---|---|
| CoreUISafeInsets (default) | Buttons and status text: clear of the top bar and the notch |
| TopbarSafeInsets | Small chips inside the top bar row; its size changes with the space left |
| DeviceSafeInsets | Clear of the notch only, not of the top bar |
| None | Backgrounds, dims and fades with no buttons |
- Setting IgnoreGuiInset to true switches CoreUISafeInsets to DeviceSafeInsets, which puts your UI under the top bar.
- ClipToDeviceSafeArea is true by default and clips everything to the device safe area. A panel that slides in from an edge is cut there.
- Never hard-code the top bar height. GuiService.TopbarInset gives the free area beside Roblox's controls and changes at run time.
In our test, a full-size Frame in a default ScreenGui on the 800x360 phone preset left 47 px on each side, 58 px at the top and 21 px at the bottom uncovered. Put full-screen layers in a ScreenGui with ScreenInsets None.
Check it on each device
- Open Studio's Device Simulator on an 800x360 phone, an 874x402 notched phone and a 1180x820 tablet.
- Start Play: Edit mode draws no top bar.
- Compare every button's AbsolutePosition and AbsoluteSize with the keep boxes above.
RoDesigner's lint pack (get_kit_pack with pack "lint") flags buttons inside these keep boxes on all four test devices.
Questions
How do I hide or move the top bar?
Work around it instead. Keep your UI below it with the default CoreUISafeInsets, or put small chips beside Roblox's controls in a TopbarSafeInsets ScreenGui.
What does IgnoreGuiInset do?
It lets a ScreenGui extend under the top bar by switching its insets to DeviceSafeInsets. Use it only for backgrounds, never for buttons.
Why did my buttons land under the jump button on a tablet?
Tablets get a larger jump button, 120 px instead of 70 px, further from the corner. Place buttons from its live position instead of fixed px.
Where these numbers come from
On mobile the default controls occupy part of the bottom-left and bottom-right corners; avoid important info or virtual buttons there.
Place custom buttons relative to the jump button; a button 40% below the top edge is reachable on a phone but almost unreachable on a tablet.
ScreenInsets: CoreUISafeInsets is the default and clears the top bar and cutouts; TopbarSafeInsets is dynamic inside the top bar; DeviceSafeInsets clears cutouts only; None is for non-interactive content.
IgnoreGuiInset true switches CoreUISafeInsets to DeviceSafeInsets; ClipToDeviceSafeArea defaults to true.
GuiService.TopbarInset is the unoccupied area between Roblox's left-most controls and the edge of the device safe area, and is dynamic.
Top bar 58 px; thumbstick ring and keep boxes, start area, jump button and keep boxes as in the table; large controls when the short side is over 500 px.
The 874x402 notched phone preset has a 62 px margin on each side; the 960x600 and 1180x820 tablet presets have none (safe frames 959x541 and 1179x761).
A passive Frame, TextLabel or ImageLabel does not block the thumbstick; a GuiButton does.
A full-size Frame in a default ScreenGui on the 800x360 preset left 47 px each side, 58 px top and 21 px bottom uncovered.
Action buttons at 0.9 of the jump button's size with a 0.12 gap, placed from its live box, overlapped nothing on five phone and tablet presets.