Instances
ScrollingFrame
A scrollable rectangular GUI container for content larger than its visible bounds.
Defaults and properties
| Name | Type | Description |
|---|---|---|
Size | UDim2 | Default: UDim2.new(0, 100, 0, 100). |
Position | UDim2 | Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0). |
AnchorPoint | Vector2 | Point inside the ScrollingFrame that Position is anchored to. Default: Vector2.new(0, 0). |
BackgroundColour3 | Colour3 | Background colour. Default: white. BackgroundColor3 is a compatibility alias. |
BackgroundTransparency | number | Background transparency from 0 through 1. Default: 0. |
Visible | boolean | Controls whether the ScrollingFrame and its descendants are drawn. Default: true. |
Rotation | number | Clockwise rotation in degrees around the ScrollingFrame centre. Default: 0. |
ZIndex | number | Sibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1. |
ClipDescendants | boolean | Clips descendants to the visible ScrollingFrame bounds. Default: true. |
Interactable | boolean | Controls whether the GUI object participates in GUI interaction. Default: true. |
Modal | boolean | When true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false. |
CanvasPosition | Vector2 | Current scroll offset in authored GUI pixels. Default: Vector2.new(0, 0). |
CanvasSize | UDim2 | Scrollable content size relative to the visible ScrollingFrame. Default: UDim2.new(0, 0, 2, 0). |
ScrollBarThickness | number | Scrollbar thickness in pixels. Default: 12. |
ScrollBarImageColour3 | Colour3 | Scrollbar colour. Default: black. ScrollBarImageColor3 is a compatibility alias. |
ScrollBarImageTransparency | number | Scrollbar transparency from 0 through 1. Default: 0. |
ScrollingEnabled | boolean | Controls mouse-wheel scrolling and scrollbar dragging. Default: true. |
BorderColour3 | Colour3 | Border colour. Default: black. BorderColor3 is a compatibility alias. |
BorderMode | Enum.BorderMode | Border placement. Default: Enum.BorderMode.Outline. |
BorderSizePixel | number | Border 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