Glorpia Docs
Instances

ScrollingFrame

A scrollable rectangular GUI container for content larger than its visible bounds.

Defaults and properties

NameTypeDescription
SizeUDim2Default: UDim2.new(0, 100, 0, 100).
PositionUDim2Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0).
AnchorPointVector2Point inside the ScrollingFrame that Position is anchored to. Default: Vector2.new(0, 0).
BackgroundColour3Colour3Background colour. Default: white. BackgroundColor3 is a compatibility alias.
BackgroundTransparencynumberBackground transparency from 0 through 1. Default: 0.
VisiblebooleanControls whether the ScrollingFrame and its descendants are drawn. Default: true.
RotationnumberClockwise rotation in degrees around the ScrollingFrame centre. Default: 0.
ZIndexnumberSibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1.
ClipDescendantsbooleanClips descendants to the visible ScrollingFrame bounds. Default: true.
InteractablebooleanControls whether the GUI object participates in GUI interaction. Default: true.
ModalbooleanWhen true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false.
CanvasPositionVector2Current scroll offset in authored GUI pixels. Default: Vector2.new(0, 0).
CanvasSizeUDim2Scrollable content size relative to the visible ScrollingFrame. Default: UDim2.new(0, 0, 2, 0).
ScrollBarThicknessnumberScrollbar thickness in pixels. Default: 12.
ScrollBarImageColour3Colour3Scrollbar colour. Default: black. ScrollBarImageColor3 is a compatibility alias.
ScrollBarImageTransparencynumberScrollbar transparency from 0 through 1. Default: 0.
ScrollingEnabledbooleanControls mouse-wheel scrolling and scrollbar dragging. Default: true.
BorderColour3Colour3Border colour. Default: black. BorderColor3 is a compatibility alias.
BorderModeEnum.BorderModeBorder placement. Default: Enum.BorderMode.Outline.
BorderSizePixelnumberBorder thickness in pixels. Default: 0.

Scrolling

Children use their normal Position values inside the canvas. CanvasPosition offsets the child content while the visible area remains fixed. Mouse-wheel input scrolls vertically while the pointer is over the ScrollingFrame. The visible horizontal and vertical scrollbar thumbs can also be clicked and dragged. Both input paths clamp the offset to the current CanvasSize.

Example

Luau
local scrolling = Instance.new("ScrollingFrame")
scrolling.Size = UDim2.new(0, 240, 0, 160)
scrolling.CanvasSize = UDim2.new(0, 0, 2, 0)
scrolling.ScrollBarThickness = 10
scrolling.ScrollBarImageColour3 = Colour3.fromRGB(80, 80, 80)
scrolling.ScrollingEnabled = true
scrolling.Parent = game:GetService("StarterGui").ScreenGui

Related