Skip to content

Home › Roblox

Defaults ​

Flux.new applies default property overrides right after creating an Instance and before applying your properties table. Parts start anchored in SmoothPlastic, GUI objects have BorderSizePixel = 0, buttons disable AutoButtonColor, and layouts sort by LayoutOrder.

Your own properties always override these defaults, and Flux.edit never applies defaults to existing instances.

Default Overrides ​

ClassOverrides Applied by Flux.new
PartAnchored = true, Material = Enum.Material.SmoothPlastic, Size = vector.create(1, 1, 1)
ScreenGui, BillboardGuiResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling
SurfaceGuiResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, PixelsPerStud = 50, SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
Frame, ImageLabel, VideoFrame, ViewportFrameBackgroundColor3 = Color3.new(1, 1, 1), BorderColor3 = Color3.new(0, 0, 0), BorderSizePixel = 0
ScrollingFrameSame as Frame + ScrollBarImageColor3 = Color3.new(0, 0, 0)
ImageButtonSame as Frame + AutoButtonColor = false
TextLabelSame as Frame + Font = Enum.Font.SourceSans, Text = "", TextColor3 = Color3.new(0, 0, 0)
TextBoxSame as TextLabel + ClearTextOnFocus = false
TextButtonSame as TextLabel + AutoButtonColor = false
UIListLayout, UIGridLayout, UITableLayout, UIPageLayoutSortOrder = Enum.SortOrder.LayoutOrder

The authoritative table lives in src/Edit.luau.

Disabling Defaults ​

Set Flux.Flags.defaults = false at startup to disable the visual default overrides in Flux.Defaults globally:

luau
Flux.Flags.defaults = false

AutoButtonColor Remains Disabled

AutoButtonColor = false on TextButton and ImageButton is applied even when Flux.Flags.defaults = false, since it controls button behavior rather than visual styling. Pass AutoButtonColor = true in the properties table when you want the engine's default tinting.

Customizing Defaults ​

Flux.Defaults is a mutable table keyed by class name. Edit existing entries or add new class defaults at startup:

luau
Flux.Defaults.TextLabel.Font = Enum.Font.GothamMedium
Flux.Defaults.UICorner = { CornerRadius = UDim.new(0, 8) }

-- Remove a single default override or clear an entire class:
Flux.Defaults.Part.Anchored = nil
Flux.Defaults.Part = nil