Edit
Types
Selection type
type Selection = { any }ClassSelector type
type ClassSelector = <T>(className: T | keyof<Type.Editable>) -> (Type.EditProperties<Fallback<T>>) -> SelectionQuerySelector type
type QuerySelector = (query: string) -> (Type.Map<any>) -> SelectionParentSelector type
type ParentSelector = () -> (Type.Map<any>) -> SelectionFunctions
edit
new
Edit.new(className: string, properties: any): Instancemount
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.
split
Edit.split(props: any, keys: any, ...: any): ...anyPartitions 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.
local OWN = {
label = Flux.prop() :: Flux.Reactive<string>,
onClick = Flux.prop() :: ((...any) -> ())?,
}
local own, rest = Flux.split(props, OWN)prop
Edit.prop(...: any): anyMarks 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.
own
Edit.own(...: { [string]: any }): anyMerges one or more component prop schemas into a single frozen schema table for Flux.Props and Flux.split.
merge
Edit.merge(...: any): anyReturns 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.
portal from Bind
Edit.portal(target: Graph.Reactive<Instance?>, children: any): PortalCreates 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.
Flags
defaults
Edit.Flags.defaults: booleanControls whether Flux.new applies the per-class Flux.Defaults table to new instances (true by default).
Part
Size
Edit.Defaults.Part.SizeAnchored
Edit.Defaults.Part.Anchored: booleanMaterial
Edit.Defaults.Part.MaterialBillboardGui
ResetOnSpawn
Edit.Defaults.BillboardGui.ResetOnSpawn: booleanZIndexBehavior
Edit.Defaults.BillboardGui.ZIndexBehaviorScreenGui
ResetOnSpawn
Edit.Defaults.ScreenGui.ResetOnSpawn: booleanZIndexBehavior
Edit.Defaults.ScreenGui.ZIndexBehaviorSurfaceGui
ResetOnSpawn
Edit.Defaults.SurfaceGui.ResetOnSpawn: booleanPixelsPerStud
Edit.Defaults.SurfaceGui.PixelsPerStud: numberZIndexBehavior
Edit.Defaults.SurfaceGui.ZIndexBehaviorSizingMode
Edit.Defaults.SurfaceGui.SizingModeUIListLayout
SortOrder
Edit.Defaults.UIListLayout.SortOrderUIGridLayout
SortOrder
Edit.Defaults.UIGridLayout.SortOrderUITableLayout
SortOrder
Edit.Defaults.UITableLayout.SortOrderUIPageLayout
SortOrder
Edit.Defaults.UIPageLayout.SortOrderDefaults
Frame
Edit.Defaults.Frame: { [string]: unknown }ImageButton
Edit.Defaults.ImageButton: { [string]: unknown }ImageLabel
Edit.Defaults.ImageLabel: { [string]: unknown }VideoFrame
Edit.Defaults.VideoFrame: { [string]: unknown }ViewportFrame
Edit.Defaults.ViewportFrame: { [string]: unknown }ScrollingFrame
Edit.Defaults.ScrollingFrame: { [string]: unknown }TextBox
Edit.Defaults.TextBox: { [string]: unknown }TextButton
Edit.Defaults.TextButton: { [string]: unknown }TextLabel
Edit.Defaults.TextLabel: { [string]: unknown }Find
Ancestor Read Only
Edit.Find.Ancestor: QuerySelectorSelects the first ancestor named name via Instance:FindFirstAncestor and applies the property table to it.
AncestorClass Read Only
Edit.Find.AncestorClass: ClassSelectorSelects the first ancestor of class className via Instance:FindFirstAncestorOfClass and applies the property table to it.
AncestorIsA Read Only
Edit.Find.AncestorIsA: ClassSelectorSelects the first ancestor matching IsA(className) via Instance:FindFirstAncestorWhichIsA and applies the property table to it.
Child Read Only
Edit.Find.Child: QuerySelectorSelects the first direct child named name via Instance:FindFirstChild and applies the property table to it.
ChildClass Read Only
Edit.Find.ChildClass: ClassSelectorSelects the first direct child of class className via Instance:FindFirstChildOfClass and applies the property table to it.
ChildIsA Read Only
Edit.Find.ChildIsA: ClassSelectorSelects the first direct child matching IsA(className) via Instance:FindFirstChildWhichIsA and applies the property table to it.
Descendant Read Only
Edit.Find.Descendant: QuerySelectorSelects the first descendant named name via Instance:FindFirstChild(name, true) and applies the property table to it.
Parent Read Only
Edit.Find.Parent: ParentSelectorSelects the target's Instance.Parent and applies the property table to it (Find.Parent() { ... }).
Path Read Only
Edit.Find.Path: QuerySelectorWalks a .-separated child path from the target (Parent or ^ climbs to Instance.Parent) and applies the property table to the final Instance.
Query Read Only
Edit.Find.Query: QuerySelectorSelects every descendant matching a Roblox query string via Instance:QueryDescendants and applies the property table to each match.
QueryFirst Read Only
Edit.Find.QueryFirst: QuerySelectorSelects the first descendant matching a Roblox query string via Instance:QueryDescendants and applies the property table to it.