Figblox Docs

Prefixes

Tell Figblox what to create from layer names.

Prefixes tell Figblox what to create. Put them at the start of the layer name.

Use this format:
.prefix Layer Name

The text after the last prefix becomes the layer name in Roblox.
Example: .textbutton Shop creates a TextButton named Shop.

No prefix needed

Some Figma layers already export to the right Roblox type on their own.

  • Text exports as a TextLabel
  • Frames, groups, components, instances, and plain rectangles export as a Frame
  • Vectors, shapes, and image-filled frames or rectangles export as an ImageLabel
  • Anything else exports as a Frame by default

Corners, strokes, gradients, auto layout, padding, and similar Figma properties can also create Roblox UI objects automatically, like UICorner, UIStroke, UIGradient, UIListLayout, UIPadding, and UIAspectRatioConstraint.

Object prefixes

.frameCreates a Frame
.textlabelCreates a TextLabel
.textbuttonCreates a TextButton
.textboxCreates a TextBox
.imagelabelCreates an ImageLabel
.imagebuttonCreates an ImageButton
.imageframeCreates an ImageLabel
.scrollingframe or .scrollvCreates a vertical ScrollingFrame
.scrollingframex or .scrollhCreates a horizontal ScrollingFrame
.scrollviewportExplicit scroll viewport tag
.viewportframeCreates a ViewportFrame
.canvas or .canvasgroupCreates a CanvasGroup

Other prefixes

.gray or .grayscaleExports a grayscale PNG
.hoverMarks the layer as Hover
.clicked or .pressedMarks the layer as Pressed
.toggledMarks the layer as Toggled
.disabledMarks the layer as Disabled
.scrollclip or .scrollviewportMarks a frame as the clipping child inside a scroll container
.rasterRenders the layer to a PNG
.parentMakes the tagged child become the Roblox parent for its group
.ignoreSkips the layer during export
.lockApplies lock behavior and can be combined with other prefixes

Combining prefixes

  • You can use more than one prefix on the same layer.
  • Prefix order in the layer name does not change how Figblox applies them. Combining prefixes works the same no matter how they are arranged.
  • For scrolling frames, .scrollh or .scrollingframex sets horizontal scrolling, and .scrollv or .scrollingframe sets vertical scrolling. These mix with your other prefixes in any order; when both horizontal and vertical scrolling markers are present, the result does not depend on which appears first.

Parent override

Use .parent on the direct child that should become the Roblox parent.

For example:
.parent .imagebutton Background

If that child is inside a group named Promote, Figblox makes it the parent and puts the other children inside it instead of creating an extra Frame.

Examples

.textlabel Health Bar
            .imagebutton Play Button
            .scrollingframe Leaderboard
            .gray .imagelabel Title
            .pressed .imagelabel OK
            .gray .scrollh .raster Card

← Back to home