Open Asterune
ScrollingFrame

ScrollingFrame

A scrollable GUI container with shared text-layout properties.

Creatable
Instance.new("ScrollingFrame")
Inherits
GuiObjectGuiBase2dGuiBaseInstance
Replication
Standard

Behavior

ScrollingFrame displays children inside a scrollable canvas. Its text-layout fields are available when the frame carries text content.

Summary

Members56
Properties41
Methods3
Events12

Properties

AbsolutePosition

ScrollingFrame.AbsolutePosition: Vector2 = Vector2.new(0, 0)

The resolved top-left position of this interface element in pixels.

AbsoluteRotation

ScrollingFrame.AbsoluteRotation: number = 0

The resolved rotation of this interface element in degrees, including ancestor rotation.

AbsoluteSize

ScrollingFrame.AbsoluteSize: Vector2 = Vector2.new(0, 0)

The resolved width and height of this interface element in pixels.

Active

ScrollingFrame.Active: boolean = true

Whether this interface accepts and consumes input.

AnchorPoint

ScrollingFrame.AnchorPoint: Vector2 = Vector2.new(0, 0)

The normalized point within the element used as the origin for Position. (0, 0) is the top-left corner; (0.5, 0.5) is the center.

AutomaticSize

ScrollingFrame.AutomaticSize: Enum.AutomaticSize = Enum.AutomaticSize.None

The dimensions that resize to fit the element's content.

BackgroundColor3

ScrollingFrame.BackgroundColor3: Color3 = Color3.new(0.6392157, 0.63529414, 0.64705884)

The color used to fill the element's background.

BackgroundTransparency

ScrollingFrame.BackgroundTransparency: number = 0

The background transparency, from 0 for opaque to 1 for invisible.

BorderColor3

ScrollingFrame.BorderColor3: Color3 = Color3.new(0.105882354, 0.16470589, 0.20784314)

The color of the element's border.

BorderMode

ScrollingFrame.BorderMode: Enum.BorderMode = Enum.BorderMode.Outline

Whether the border is drawn outside, across, or inside the element's bounds.

BorderSizePixel

ScrollingFrame.BorderSizePixel: number = 1

The border thickness in pixels.

CanvasPosition

ScrollingFrame.CanvasPosition: Vector2 = Vector2.new(0, 0)

The scroll offset within the canvas, in pixels.

CanvasSize

ScrollingFrame.CanvasSize: UDim2 = UDim2.new(0, 0, 0, 0)

The dimensions of the scrollable or surface-rendered canvas.

ClipsDescendants

ScrollingFrame.ClipsDescendants: boolean = false

Whether descendant rendering is clipped to this element's bounds.

CornerRadius

ScrollingFrame.CornerRadius: number = 0

The corner radius used for the element's rounded background.

Corners

ScrollingFrame.Corners: { number } = {}

The individual corner radii used for the element's rounded background.

Draggable

ScrollingFrame.Draggable: boolean = false

Whether pointer dragging can move the element.

Grow

ScrollingFrame.Grow: number = 0

The share of remaining main-axis space assigned to this child in flow layout.

GuiState

ScrollingFrame.GuiState: Enum.GuiState = Enum.GuiState.Idle

The element's current idle, hover, pressed, or non-interactable state.

InputSink

ScrollingFrame.InputSink: Enum.InputSink = Enum.InputSink.None

Which input events this element consumes before they reach elements behind it.

Interactable

ScrollingFrame.Interactable: boolean = true

Whether the element accepts interaction.

Layout

ScrollingFrame.Layout: Enum.Layout = Enum.Layout.Flow

Whether children use flow layout or their explicit positions.

LayoutOrder

ScrollingFrame.LayoutOrder: number = 0

The numeric order of this element when a parent layout sorts by layout order.

NextSelectionDown

ScrollingFrame.NextSelectionDown: GuiObject? = nil

The interface element selected when navigating down from this element.

NextSelectionLeft

ScrollingFrame.NextSelectionLeft: GuiObject? = nil

The interface element selected when navigating left from this element.

NextSelectionRight

ScrollingFrame.NextSelectionRight: GuiObject? = nil

The interface element selected when navigating right from this element.

NextSelectionUp

ScrollingFrame.NextSelectionUp: GuiObject? = nil

The interface element selected when navigating up from this element.

Opacity

ScrollingFrame.Opacity: number = 1

The opacity multiplier applied to this element and its descendants.

Position

ScrollingFrame.Position: UDim2 = UDim2.new(0, 0, 0, 0)

The element position relative to its parent. Scale components use the parent size; offsets are in pixels.

Rotation

ScrollingFrame.Rotation: number = 0

The interface rotation in degrees.

ScrollBarColor

ScrollingFrame.ScrollBarColor: Color3

The color used to draw the scroll bar.

ScrollBarOpacity

ScrollingFrame.ScrollBarOpacity: number

The opacity of the scroll bar.

ScrollBarThickness

ScrollingFrame.ScrollBarThickness: number = 12

The scroll bar width in pixels.

ScrollingEnabled

ScrollingFrame.ScrollingEnabled: boolean = true

Whether the user can scroll the canvas.

Selectable

ScrollingFrame.Selectable: boolean = false

Whether interface navigation can select this element.

SelectionImageObject

ScrollingFrame.SelectionImageObject: GuiObject? = nil

The interface element used to draw the selection indicator.

SelectionOrder

ScrollingFrame.SelectionOrder: number = 0

The numeric order used for interface selection traversal.

Size

ScrollingFrame.Size: UDim2 = UDim2.new(0, 0, 0, 0)

The element size relative to its parent. Scale components use the parent size; offsets are in pixels.

SizeConstraint

ScrollingFrame.SizeConstraint: Enum.SizeConstraint = Enum.SizeConstraint.RelativeXY

The parent axes used to resolve relative interface size.

Visible

ScrollingFrame.Visible: boolean = true

Whether this interface element is rendered.

ZIndex

ScrollingFrame.ZIndex: number = 1

The element's draw-order index. Interpretation depends on the root's ZIndexBehavior.

Methods

CaptureFocus

ScrollingFrame:CaptureFocus(): ()

Gives keyboard focus to this interface element.

GetExecutionGroup

ScrollingFrame:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

ReleaseFocus

ScrollingFrame:ReleaseFocus(): ()

Removes keyboard focus from this interface element.

Events

DragBegin

ScrollingFrame.DragBegin: RBXScriptSignal

Fires when pointer dragging of the element begins.

DragStopped

ScrollingFrame.DragStopped: RBXScriptSignal

Fires when pointer dragging of the element ends.

InputBegan

ScrollingFrame.InputBegan: RBXScriptSignal

Fires when input begins over or is dispatched to this interface element.

InputChanged

ScrollingFrame.InputChanged: RBXScriptSignal

Fires when input dispatched to this element changes.

InputEnded

ScrollingFrame.InputEnded: RBXScriptSignal

Fires when input dispatched to this element ends.

MouseWheelBackward

ScrollingFrame.MouseWheelBackward: RBXScriptSignal

Fires when the mouse wheel scrolls backward over this element.

MouseWheelForward

ScrollingFrame.MouseWheelForward: RBXScriptSignal

Fires when the mouse wheel scrolls forward over this element.

PointerEntered

ScrollingFrame.PointerEntered: RBXScriptSignal

Fires when a pointer moves onto the frame.

PointerExited

ScrollingFrame.PointerExited: RBXScriptSignal

Fires when a pointer moves off the frame.

PointerMoved

ScrollingFrame.PointerMoved: RBXScriptSignal

Fires when the pointer moves across the frame.

SelectionGained

ScrollingFrame.SelectionGained: RBXScriptSignal

Fires when interface navigation selects this element.

SelectionLost

ScrollingFrame.SelectionLost: RBXScriptSignal

Fires when this element loses interface selection.

Inherited members

Inherited48

Example

Luau
local list = Instance.new("ScrollingFrame")
list.CanvasSize = UDim2.new(0, 0, 0, 600)
list.Parent = game:GetService("Players").LocalPlayer.PlayerGui

Frame · UIListLayout · UDim2