Skip to main content
All posts
Guides

Roblox GUI Size: Scale, Offset & Safe Areas

How to size Roblox GUI so it fits PC, tablet and phone: Scale vs Offset in UDim2, AnchorPoint, UIAspectRatioConstraint, UIScale, safe areas and touch zones.

Your shop looks perfect in Studio. Then someone joins on a phone and the Buy button is off the screen, the title overlaps the jump button, and the whole panel is a thin strip. Nothing is broken in your scripts; the GUI was sized in pixels for one monitor.

There's no single "correct" Roblox GUI size. There's a correct way to size it so it adapts to every screen. This guide covers that, with the property names you'll actually type in Studio. It follows Roblox's Creator Documentation on position, size and on-screen containers, checked November 29, 2026.

The short answer

  • Design against 1920×1080 (16:9) as your reference, but don't hard-code pixels.
  • Size and position with Scale, not Offset, for anything that should resize with the screen.
  • Lock proportions with UIAspectRatioConstraint so panels don't stretch.
  • Keep buttons out of the top bar area and the mobile thumbstick/jump zones.
  • Test with Studio's Device Emulator on at least one phone and one tablet.

Scale vs Offset: how UDim2 works

Every GUI object's Size and Position is a UDim2: four numbers, {XScale, XOffset}, {YScale, YOffset}.

Diagram of the four UDim2 components: X scale, X offset, Y scale, Y offset UDim2 has a Scale and an Offset part for each axis. Image: Roblox Creator Docs, CC BY 4.0.

  • Scale is a fraction of the parent's size. 0.5 = half the screen (or half the parent frame).
  • Offset is fixed pixels. 200 = 200 pixels on every device.

The same frame sized with Scale: it keeps the same proportion of the screen on different devices Scale sizing keeps a frame proportional to its parent. Image: Roblox Creator Docs, CC BY 4.0.

A panel sized {0, 600}, {0, 400} fills a third of a monitor and overflows a phone. The same panel at {0.4, 0}, {0.5, 0} is 40% wide and 50% tall everywhere. In Luau, UDim2.fromScale(0.4, 0.5) is the shorthand.

When Offset is fine: small fixed padding, thin borders, or an icon you deliberately want the same physical size. Mixing is allowed: {0.5, -100} means "middle of the screen, then 100 pixels left."

AnchorPoint: what "position" is measured from

By default a frame's position is its top-left corner. Set AnchorPoint to (0.5, 0.5) and position becomes the center, so Position = UDim2.fromScale(0.5, 0.5) truly centers a popup.

Diagram of AnchorPoint values from (0,0) top-left to (1,1) bottom-right AnchorPoint picks which point of the object its Position refers to. Image: Roblox Creator Docs, CC BY 4.0.

Useful anchors:

ElementAnchorPointPosition
Centered modal (shop, settings)(0.5, 0.5)(0.5, 0, 0.5, 0)
Bottom hotbar(0.5, 1)(0.5, 0, 1, -20)
Top-right currency counter(1, 0)(1, -16, 0, 16)

Stop panels from stretching: UIAspectRatioConstraint

Scale on both axes means a square card becomes a wide rectangle on an ultrawide monitor and a tall one on a phone in portrait. Add a UIAspectRatioConstraint to the frame and set AspectRatio (width ÷ height): 1 for square slots, 1.6 for a 16:10 shop panel. Pair it with a size constraint (UISizeConstraint) if a panel should never exceed a maximum pixel size on big screens.

Scale everything at once: UIScale

A UI shown at normal size and enlarged with a UIScale object UIScale multiplies the size of everything under it. Image: Roblox Creator Docs, CC BY 4.0.

A UIScale inside a frame multiplies the whole subtree by its Scale value. It's handy when a layout built in Offset needs to grow or shrink together, or for an accessibility "UI size" slider.

Text that fits

  • TextScaled = true makes text fill its box; add a UITextSizeConstraint with a MaxTextSize so labels don't become huge on desktop.
  • Give text boxes enough room for translation: German and Portuguese strings run longer than English.
  • Keep body text readable on phones; tiny labels that look fine at 1080p vanish on a 6-inch screen.

Safe areas: top bar, notches and touch controls

Phone screen showing the areas that are comfortable to reach with thumbs Thumb reach on a phone held in landscape. Put frequent buttons where thumbs already rest. Image: Roblox Creator Docs, CC BY 4.0.

Mobile screen with the thumbstick and jump button zones marked as reserved The default thumbstick (bottom left) and jump button (bottom right) zones. Don't place your own buttons there. Image: Roblox Creator Docs, CC BY 4.0.

  • Top bar: Roblox's own menu buttons sit at the top. ScreenGui.ScreenInsets controls whether your UI avoids them; the default CoreUISafeInsets keeps you clear of core UI.
  • Notches and rounded corners: DeviceSafeInsets keeps content inside the area safe on phones with cut-outs.
  • Touch zones: keep tappable buttons away from the default thumbstick and jump areas, and make them big enough for a thumb.

Common GUI sizes to start from

These are starting proportions on a 1920×1080 reference, to convert into Scale:

ElementReference sizeAs Scale (approx.)
Full-screen menu1920×1080{1,0},{1,0}
Shop / inventory modal1200×720{0.625,0},{0.667,0} + aspect ratio 1.67
Hotbar800×120{0.42,0},{0.11,0} anchored bottom-center
Corner HUD / minimap256×256{0.13,0},... + aspect ratio 1

Test on real screen sizes

In Studio, open Test → Device (the Device Emulator) and switch between a phone, a tablet and a 1080p monitor, in both orientations if your game allows portrait. Watch for clipped buttons, overlapping text and anything under the touch controls.

Skip the pixel math

Game Thumb's Roblox UI Maker places every object in screen fractions, previews the layout at Desktop, Tablet and Mobile sizes, and exports Luau that uses UDim2.fromScale, so the ScreenGui you paste into Studio already resizes with the player's screen. You still own the polish; you just start from a layout that doesn't break on phones.

Game Thumb Roblox UI Maker previewing one layout at desktop and mobile sizes One layout checked at different screen sizes before export.

FAQ

What size should a Roblox GUI be? Design against 1920×1080, then size elements with Scale so they're a fraction of the screen rather than a fixed pixel count.

Should I use Scale or Offset in Roblox? Scale for size and position of anything that should adapt to the screen; Offset for small fixed padding or borders. Many layouts mix both.

Why does my Roblox GUI look different on mobile? It was probably sized in Offset (pixels), or it stretches because both axes use Scale without a UIAspectRatioConstraint.

How do I center a GUI in Roblox? Set AnchorPoint to (0.5, 0.5) and Position to UDim2.fromScale(0.5, 0.5).

How do I make Roblox UI fit all screens? Scale-based sizes, an aspect-ratio constraint on panels, safe-area insets on the ScreenGui, and a pass through the Device Emulator. For the full build process see how to make a Roblox UI.

Sources