make_responsive
Converts Roblox UI Offset values to Scale across position, size, padding, and corner radius so interfaces adapt to different screen sizes; preview with dryRun first and skip runtime-driven elements.
Instructions
Make a UI subtree resolution-proof. Converts Offset→Scale across ALL the properties that break responsiveness — Position, Size, CanvasSize, CellSize, CellPadding, UIPadding, UICorner CornerRadius (validated formula: ÷ parent AbsoluteSize per axis; CornerRadius ÷ min-axis). Skips runtime-driven elements (tagged Draggable/Resizable, or in exclude) so it never shatters draggable/resizable panels. ALWAYS dryRun first to preview.
modes: scale (default, Offset→Scale) · offset (reverse) · fit (root fills parent: Size {1,1} + Pos 0 + Anchor 0) · uiscale (keep Offset, add a UIScale + a real viewport-fit driver).
Flags: aspectRatio (add UIAspectRatioConstraint at current aspect, skips layout-managed kids), minSize (UISizeConstraint 44×44 on buttons).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "make_responsive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Conversion mode (see the description). Default scale. | |
| path | Yes | Root of the UI to convert, e.g. "StarterGui.HUD.Panel". Dot path from the DataModel root, e.g. "Workspace.Map.Door" or "StarterGui.HUD.Frame". A leading "game." is optional; a duplicate sibling name takes the suffix Tufan prints, e.g. "Part (2)". | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| dryRun | No | preview without writing (do this first) | |
| exclude | No | paths to leave untouched (runtime-driven elements) | |
| minSize | No | add 44×44 UISizeConstraint to buttons | |
| aspectRatio | No | add UIAspectRatioConstraint at current aspect | |
| referenceResolution | No | uiscale mode design res (default 1280×720) |