skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
tabooharmony/roblox-brain135 installs

roblox-ui

Use when building, fixing or reviewing Roblox UI: HUDs, menus, shops, safe areas, scaling, gamepad focus, phone, tablet, console and TV.

How do I install this agent skill?

npx skills add https://github.com/tabooharmony/roblox-brain --skill roblox-ui
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides comprehensive guidelines for developing Roblox user interfaces, including best practices for mobile responsiveness, gamepad navigation, and performance. It includes security-conscious recommendations for handling player-provided text.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · 1 issue

What does this agent skill do?

Roblox UI

Scope

Any Roblox screen, world or menu UI: placement, scaling, layering, gamepad focus, UI effects. Touch/gamepad bindings and on-screen action buttons: roblox-input; UI cost: roblox-performance; player text and translation: roblox-text.

"Field-measured" = measured in one of the owner's projects; verify on your content. Platform values (insets, top bar, hotbar, console rules) are as of 2026-11.

Traps and review checklist (symptom -> cause -> fix)

  • Cut off / offset on a notched phone -> a ScreenGui's canvas is smaller than the screen: even with IgnoreGuiInset = true it defaults to ScreenInsets = DeviceSafeInsets (780×360 phone -> 685×338 canvas, field-measured). Lay out on the ScreenGui's AbsoluteSize; interactive UI in CoreUISafeInsets; crosshair and backgrounds in their own ScreenGui with None (§1).
  • Overlap maths off by the top bar -> AbsolutePosition is measured from below the top-bar inset in every ScreenGui, whatever IgnoreGuiInset says. Screen Y = AbsolutePosition.Y + GuiService:GetGuiInset().Y; compare across ScreenGuis in raw AbsolutePosition (Studio-measured).
  • Top-centre pill off-centre -> TopbarSafeInsets is lopsided (a centred pill sat at 63% of width). Place by GuiService.TopbarInset, which changes at runtime (§1).
  • Button under the thumb -> lower-left is the thumbstick zone, jump bottom-right, Roblox menu/chat top-left; top-centre is usually free. Place custom touch buttons from the live jump button in PlayerGui.TouchGui (§1).
  • Overlaps only in play -> overlap comes from state pairs (weapon button + round menu, spectate bar + hotbar, toast + timer). Check every pair that can show together on the smallest phone with touch controls up.
  • Text tiny on PC / huge on phone under a UIScale stage -> UITextSizeConstraint caps are screen pixels and ignore UIScale (field-measured, two projects). Scale caps with the stage or drop the constraint. TextScaled stops at 100 px.
  • Whole screen soft/blurry -> it lives in a CanvasGroup, whose texture resolution the quality level caps. Keep screens in a plain Frame; reparent into a CanvasGroup only for the fade (field-measured). A UIGradient on a CanvasGroup tints everything inside.
  • Controller stuck, or focus jumps to the HUD behind a menu -> no SelectionGroup boundary (default SelectionBehavior is Escape), entry focus on a hidden button, or a top-bar library binding D-pad Up (§2).
  • Jump/attack dead after closing a menu on gamepad -> GuiService.SelectedObject still set, so gamepad buttons drive UI. Clear it on close; gate gameplay input on it.
  • Mobile players in portrait in a landscape game -> StarterGui.ScreenOrientation defaults to Sensor (portrait allowed). Set LandscapeSensor in every place's StarterGui (lobby, stages); it only applies on join, so set PlayerGui.ScreenOrientation for players already in.
  • 4th+ tool missing on phones, 11th+ unreachable on PC -> the default hotbar shows 10 slots on desktop but only 3 on touch devices (iPhone 13 and iPad 10th gen, both landscape; set at spawn by touch input, not screen width; Studio-verified 2026-11-29), and keys 1-9, 0 reach only 10. For 4+ tools on mobile or 10+ anywhere disable Enum.CoreGuiType.Backpack (StarterGui:SetCoreGuiEnabled) and build a hotbar + bag; phones need tap-to-pick from a list (field case).
  • Console detected wrong -> GuiService:IsTenFootInterface() is deprecated and hardcoded true on consoles. Layout: ViewportDisplaySize == Enum.DisplaySize.Large; controls: UserInputService.PreferredInput. TV: inset from every edge (overscan), no chat window, remote = D-pad + centre (ButtonA) + back (ButtonB).
  • Menu opens twice / reopens blank -> a stale close tween's Completed ran after reopen. One controller per window, every open path through it, a token that cancels stale tweens, undo list for outside changes (hidden HUD, TouchControlsEnabled, mouse) run on close, destroy and respawn. Leak test: descendants back to baseline after 10 open/close cycles, including close mid-tween.
  • Outside-click closes the menu when clicking inside -> a plain Frame passes input. Active = true on the panel, panel above the close button.
  • List opens scrolled to the middle -> UIListLayout.VerticalAlignment = Center in a ScrollingFrame. Use Top.
  • Kit piece drawn over its own button -> ZIndexBehavior differs from the kit's (Sibling: children above parent; Global: ZIndex across the ScreenGui). Match the kit.

Limits

ItemValue
Phone top bar (GetGuiInset().Y)~58 px
Design order~667×375 phone, ~780-850 × 360-390 phones, 1024×768 tablet, desktop, TV
UIScale per objectone applies; remove a kit's own before scaling the same object
~1.4k-instance window built in place vs detached + parent once55 ms vs 24 + 17 ms (field-measured)

1. Safe areas and measurement

  • CoreUISafeInsets avoids cutouts and core UI (docs: use for interactive UI); DeviceSafeInsets cutouts only; None for non-interactive or true-centre content.
  • Top-centre widget: own ScreenGui, ScreenInsets = None, IgnoreGuiInset = true; Y at the middle of TopbarInset, X at screen centre clamped to TopbarInset.Min.X..Max.X; re-place on GetPropertyChangedSignal("TopbarInset") and resize. Too wide -> drop a chip, never skip the clamp.
  • Phone windows go under TopbarInset.Max.Y, centred, not slid sideways. GuiService.TouchControlsEnabled = false hides thumbstick and jump; restore on close.
  • PlayerGui.TouchGui has its own insets (field: 685×280 vs a 685×338 HUD): convert before comparing. It can appear after your first layout: re-fit on PlayerGui.ChildAdded and when PreferredInput becomes Touch.
  • Camera:WorldToViewportPoint matches a ScreenGui with IgnoreGuiInset = true. GetMouseLocation() includes the inset; PlayerGui:GetGuiObjectsAtPosition() expects it removed.
  • BillboardGui children sized in offset don't shrink with distance and balloon across the screen: use scale + TextScaled.

2. Gamepad focus

One owner of GuiService.SelectedObject per view:

  • Back unwinds one layer; exit restores the opener if visible, else clears. Auto panels never steal focus. Menu keys must Pass while any window is open (roblox-input).
  • SelectionGained/SelectionLost pass a GuiNavigationDirection (None when not from navigation): treat as hover. Thin default outline on TV: set PlayerGui.SelectionImageObject.

3. APIs and quirks models get wrong

  • Flex is UIListLayout.HorizontalFlex/VerticalFlex + UIFlexItem (no UIFlexLayout). UIGridLayout ignores child Size, wraps by FillDirectionMaxCells. TextBox: one deduplicated submit for FocusLost(enterPressed) and ReturnPressedFromOnScreenKeyboard.
  • UIGradient: animate Offset/Rotation, not Color/Transparency (rebuilds); not on ScrollingFrame/TextBox; Radial ignores Rotation; Type also Elliptical/Conical; TileMode Clamp/Repeat/Mirror.
  • ParticleEmitter2D (beta "UI Particles", enable in Beta Features) <!-- temporal: 2026-11 -->: Emit() works while disabled; Clear() removes live particles; EmissionMode Point/BoundingBox; TimeScale = 0 freezes for capture. Size/Speed are offset units: a desktop-sized effect covered half a phone's UI (DevForum), so scale from AbsoluteSize.
  • Fusion Hydrate puts the instance in the scope (cleanup destroys it); Fluid root() teardown does not destroy create() instances.
  • Never RichText on player text (tags inject styling).
  • Looping tweens with DelayTime park at the end between loops. ViewportFrame meshes can take seconds to appear after Play.

4. Verification

Measure first (AbsolutePosition/AbsoluteSize of anything that could collide), then screenshot. The built-in Studio MCP's rbx-device-simulator-lua skill plus screen_capture cover phone, tablet, desktop and console presets and orientations (roblox-studio-mcp); confirm PreferredInput is Touch before judging touch layout. Studio capture missed BillboardGuis that a SurfaceGui showed (field).

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/tabooharmony/roblox-brain/roblox-ui">View roblox-ui on skillZs</a>