Skip to content

Edit ​

Types ​

Selection type ​

luau
type Selection = { any }

ClassSelector type ​

luau
type ClassSelector = <T>(className: T | keyof<Type.Editable>) -> (Type.EditProperties<Fallback<T>>) -> Selection

QuerySelector type ​

luau
type QuerySelector = (query: string) -> (Type.Map<any>) -> Selection

ParentSelector type ​

luau
type ParentSelector = () -> (Type.Map<any>) -> Selection

Functions ​

edit ​

luau
Edit.edit(instance: Instance, properties: Type.Map<any>): Instance

new ​

luau
Edit.new(className: string, properties: any): Instance

mount ​

luau
Edit.mount(fn: () -> any, target: Graph.Reactive<Instance?>?): () -> ()

Runs fn inside a new root scope, mounts the returned UI into target (or mounts returned portals when target is omitted), and returns an idempotent unmount function. Never destroys target.

Open Documentation

split ​

luau
Edit.split(props: any, keys: any, ...: any): ...any

Partitions props into one table per keys group plus a final table holding every remaining key, leaving props untouched. Pass a Flux.prop() / Flux.own() schema or an annotated key-literal array ({ "label" | "onClick" }) to preserve exact Pick and Omit types on a single group.

luau
local OWN = {
	label = Flux.prop() :: Flux.Reactive<string>,
	onClick = Flux.prop() :: ((...any) -> ())?,
}
local own, rest = Flux.split(props, OWN)

Open Documentation

prop ​

luau
Edit.prop(...: any): any

Marks a key in a component prop schema for Flux.split; cast a bare call to declare the type (Flux.prop() :: Flux.Reactive<string>), or pass default (Flux.prop(16)) to fill missing/nil values automatically.

Open Documentation

own ​

luau
Edit.own(...: { [string]: any }): any

Merges one or more component prop schemas into a single frozen schema table for Flux.Props and Flux.split.

Open Documentation

merge ​

luau
Edit.merge(...: any): any

Returns a shallow read-only live view merging 1-4 prop tables left-to-right where the rightmost non-nil value wins per key. Nest { base, rest } arrays or chain Flux.edit to combine children and directives instead.

Open Documentation

portal from Bind ​

luau
Edit.portal(target: Graph.Reactive<Instance?>, children: any): Portal

Creates a portal mounting children into target (static Instance or reactive target node) without transferring ownership of target. Mounted children are unparented when the owning scope tears down, the target changes, or the portal host is destroyed.

Open Documentation

Flags ​

defaults ​

luau
Edit.Flags.defaults: boolean

Controls whether Flux.new applies the per-class Flux.Defaults table to new instances (true by default).

Open Documentation

Part ​

Size ​

luau
Edit.Defaults.Part.Size

Anchored ​

luau
Edit.Defaults.Part.Anchored: boolean

Material ​

luau
Edit.Defaults.Part.Material

BillboardGui ​

ResetOnSpawn ​

luau
Edit.Defaults.BillboardGui.ResetOnSpawn: boolean

ZIndexBehavior ​

luau
Edit.Defaults.BillboardGui.ZIndexBehavior

ScreenGui ​

ResetOnSpawn ​

luau
Edit.Defaults.ScreenGui.ResetOnSpawn: boolean

ZIndexBehavior ​

luau
Edit.Defaults.ScreenGui.ZIndexBehavior

SurfaceGui ​

ResetOnSpawn ​

luau
Edit.Defaults.SurfaceGui.ResetOnSpawn: boolean

PixelsPerStud ​

luau
Edit.Defaults.SurfaceGui.PixelsPerStud: number

ZIndexBehavior ​

luau
Edit.Defaults.SurfaceGui.ZIndexBehavior

SizingMode ​

luau
Edit.Defaults.SurfaceGui.SizingMode

UIListLayout ​

SortOrder ​

luau
Edit.Defaults.UIListLayout.SortOrder

UIGridLayout ​

SortOrder ​

luau
Edit.Defaults.UIGridLayout.SortOrder

UITableLayout ​

SortOrder ​

luau
Edit.Defaults.UITableLayout.SortOrder

UIPageLayout ​

SortOrder ​

luau
Edit.Defaults.UIPageLayout.SortOrder

Defaults ​

Frame ​

luau
Edit.Defaults.Frame: { [string]: unknown }

ImageButton ​

luau
Edit.Defaults.ImageButton: { [string]: unknown }

ImageLabel ​

luau
Edit.Defaults.ImageLabel: { [string]: unknown }

VideoFrame ​

luau
Edit.Defaults.VideoFrame: { [string]: unknown }

ViewportFrame ​

luau
Edit.Defaults.ViewportFrame: { [string]: unknown }

ScrollingFrame ​

luau
Edit.Defaults.ScrollingFrame: { [string]: unknown }

TextBox ​

luau
Edit.Defaults.TextBox: { [string]: unknown }

TextButton ​

luau
Edit.Defaults.TextButton: { [string]: unknown }

TextLabel ​

luau
Edit.Defaults.TextLabel: { [string]: unknown }

Find ​

Ancestor Read Only ​

luau
Edit.Find.Ancestor: QuerySelector

Selects the first ancestor named name via Instance:FindFirstAncestor and applies the property table to it.

Open Documentation

AncestorClass Read Only ​

luau
Edit.Find.AncestorClass: ClassSelector

Selects the first ancestor of class className via Instance:FindFirstAncestorOfClass and applies the property table to it.

Open Documentation

AncestorIsA Read Only ​

luau
Edit.Find.AncestorIsA: ClassSelector

Selects the first ancestor matching IsA(className) via Instance:FindFirstAncestorWhichIsA and applies the property table to it.

Open Documentation

Child Read Only ​

luau
Edit.Find.Child: QuerySelector

Selects the first direct child named name via Instance:FindFirstChild and applies the property table to it.

Open Documentation

ChildClass Read Only ​

luau
Edit.Find.ChildClass: ClassSelector

Selects the first direct child of class className via Instance:FindFirstChildOfClass and applies the property table to it.

Open Documentation

ChildIsA Read Only ​

luau
Edit.Find.ChildIsA: ClassSelector

Selects the first direct child matching IsA(className) via Instance:FindFirstChildWhichIsA and applies the property table to it.

Open Documentation

Descendant Read Only ​

luau
Edit.Find.Descendant: QuerySelector

Selects the first descendant named name via Instance:FindFirstChild(name, true) and applies the property table to it.

Open Documentation

Parent Read Only ​

luau
Edit.Find.Parent: ParentSelector

Selects the target's Instance.Parent and applies the property table to it (Find.Parent() { ... }).

Open Documentation

Path Read Only ​

luau
Edit.Find.Path: QuerySelector

Walks a .-separated child path from the target (Parent or ^ climbs to Instance.Parent) and applies the property table to the final Instance.

Open Documentation

Query Read Only ​

luau
Edit.Find.Query: QuerySelector

Selects every descendant matching a Roblox query string via Instance:QueryDescendants and applies the property table to each match.

Open Documentation

QueryFirst Read Only ​

luau
Edit.Find.QueryFirst: QuerySelector

Selects the first descendant matching a Roblox query string via Instance:QueryDescendants and applies the property table to it.

Open Documentation