UI appearance modifiers

By utilizing appearance modifiers, you can further customize the appearance of your GuiObjects.

Gradient

The UIGradient object applies a color and transparency gradient to its parent GuiObject.

You can configure the gradient by:

Color sequence

To set a gradient's color sequence:

  1. In the Explorer window, select the UIGradient.

  2. In the Properties window, click inside the Color property field, then click the button to the right of the input box. A color sequence pop-up displays.

    Each triangle on the bottom axis of the color sequence is a keypoint that determines the color value at that point.

    Color sequence popup from white to white
  3. Click a keypoint in the color sequence, then click the small square next to Color to open the Colors pop-up window.

  4. Select the desired color for the keypoint.

    Color sequence popup from red to white
  5. If needed, you can:

    • Add another keypoint by clicking anywhere on the graph.
    • Drag an existing keypoint to a new position, or select a keypoint and enter a specific time value through the Time input.
    • Delete a keypoint by selecting it and clicking the Delete button.
    • Reset the sequence by clicking the Reset button.

Transparency

To adjust a gradient's transparency across its range:

  1. In the Explorer window, select the UIGradient.

  2. In the Properties window, click inside the Transparency property field, then click the button to the right of the input box. A number sequence pop-up displays.

    Each square across the number sequence graph is a keypoint that determines the transparency value at that point.

    Keypoints labeled in number sequence popup
  3. Click and drag any keypoint around, or select a keypoint and enter a specific time/value combination through the Time and Value inputs.

    Number sequence popup from 0 to 1
  4. If needed, you can:

    • Add another keypoint by clicking anywhere on the graph.
    • Delete a keypoint by selecting it and clicking the Delete button.
    • Reset the sequence by clicking the Reset button.

Offset and rotation

The Offset and Rotation properties let you adjust the gradient's control points and its angle. As illustrated in the following diagrams, Offset is based on a percentage of the parent's width or height, and both positive or negative values are valid.

Offset.X = 0.25
Offset.X = -0.25

Similarly, when you rotate the gradient, the control points also rotate:

Stroke

The UIStroke instance applies an outline to text or a border. Key features include:

Thickness

You can set the stroke width through the Thickness property which is measured in pixels (default) or scaled relative to the parent, depending on the modifier's StrokeSizingMode. If stroke is on text and StrokeSizingMode is set to ScaledSize, thickness is relative to the font size.

Color or gradient

You can set the stroke color through the Color property, as well as insert a child UIGradient instance to create gradient strokes.

UIStroke.Color = (0, 95, 225)
UIStroke with UIGradient child

Text outline or border

Depending on its parent type, UIStroke operates as either a text outline or as a border. When you parent UIStroke to a text object like TextLabel, it applies to the text's outline; when you parent UIStroke to other GuiObjects, it applies to the border.

TextLabel with UIStroke child
Frame with UIStroke and UICorner children

When applied to a text object, you can override the default stroke behavior by the ApplyStrokeMode property, letting you apply the stroke to the object's bounds instead of the text itself. You can even control the text outline and border independently by parenting two UIStroke instances to a text object, one set to Contextual and the other to Border.

Border position/offset

BorderStrokePosition sets the stroke's position relative to its parent's border and BorderOffset lets you specify an additional offset to the stroke's position.

BorderOffset = (0.15, 0)
BorderOffset = (0, -16)

Transparency

The Transparency property sets the stroke transparency independently of the parent object's BackgroundTransparency or TextTransparency. This allows you to render text and borders that are "hollow" (consisting of only an outline).

Corner style

The LineJoinMode property lets you control how corners are interpreted. It accepts a value of either Round, Bevel, or Miter.

Layering

To layer multiple sibling UIStroke instances on a GuiObject from front to back, you can utilize the ZIndex property. Those with a lower ZIndex render under (behind) those with a higher ZIndex.

Note that the rendering order for UIStroke instances with the same ZIndex is undefined. Do not apply multiple UIStroke instances with the same index if their rendering order matters.

Corners

The UICorner instance applies deformation to the corners of its parent GuiObject. You can control the applied radius through the CornerRadius property using either Scale or Offset.

Scale rounds the corners to a percentage based on the total length of the shortest edge of the parent, meaning that a scale of 0.5 or higher deforms the parent into a "pill" shape, regardless of its width or height. Offset rounds the corners to a specific number of pixels, regardless of the width/height of the parent.

Scale = 0.25  ·  Offset = 0
Scale = 0.5  ·  Offset = 0
Scale = 0  ·  Offset = 32
Scale = 0  ·  Offset = 64

You can also control individual corners through the TopLeftRadius, TopRightRadius, BottomRightRadius, and BottomLeftRadius properties.

TopLeftRadius = (0, 0)
TopRightRadius = (0, 48)
BottomRightRadius = (0, 48)
BottomLeftRadius = (0, 0)

Padding

A UIPadding object applies top, bottom, left, and/or right padding to the contents of the parent GuiObject. For example, you can move the text inside a text label downward or upward by applying an offset to the modifier's PaddingBottom property.

PaddingBottom = (0, -20)
PaddingBottom = (0, 30)

Shadow

A UIShadow object renders a drop shadow behind its parent UI instance. Key features include:

Bluriness

The BlurRadius property determines the shadow's blurriness. A larger value makes the shadow's edges appear softer. Note that the scale factor of this UDim property is relative to the parent's width or height, whichever is shorter.

BlurRadius = (0, 0)
BlurRadius = (0.75, 0)

Color and transparency

The Color property determines the shadow's color, while Transparency sets the shadow's transparency with 0 being fully opaque and 1 being fully transparent.

Color = (255, 255, 255)  ·  Transparency = 0.6
Color = (50, 0, 35)  ·  Transparency = 0

Offset and spread

The Offset property moves the shadow relative to the parent's position, while Spread expands or shrinks the shadow relative to the parent's size.

Offset = {0, -14}, {0, 6}
Offset = {0.1, 0}, {-0.15, 0}
Spread = {0, 10}, {0, 10}
Spread = {0.3, 0}, {0.3, 0}
©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.