Creating a Scrolling Frame GUI

Creating a Scrolling Frame GUI

5 min


A ScrollingFrame is setup much in the same way a regular Frame is. Add a ScreenGui to the StarterGui in your place, and then insert a ScrollingFrame.


  • The position of the ScrollingFrame is set with its Position property which is a DataType/UDim2.
  • Likewise, the size of the ScrollingFrame is set in the Size property which is also a DataType/UDim2. Note that a ScrollingFrame may have a scrollbar which takes up some of this size
  • If you need to know how big the actual viewing area is in a ScrollingFrame you can access it using the read-only property ScrollingFrame/AbsoluteWindowSize.
  • If scroll bars are shown, their thickness is determined by the ScrollingFrame/ScrollBarThickness property.
  • The area inside of a ScrollingFrame is called a canvas. The CanvasSize property determines how large the total canvas is. If one of the dimensions of the Canvas is wider than the size of the ScrollingFrame, then the corresponding scroll bar is shown. Otherwise the scroll bar is hidden.
  • The CanvasPosition defines the default position of the scroll bars (in pixels) when the frame is shown. Note this property won’t do anything if the scrollbars are not shown.

Customizing scrollbars

The bar in a ScrollerFrame can be customized. The bar itself is composed of three images: a top, middle and bottom. The horizontal and vertical bars use the same images (the horizontal bar rotates the images from the vertical bar 90 degrees counter-clockwise).

The images in the scroll bar are scaled based on the property ScrollBarThickness. The top and bottom images are always square with both width and height equal to the thickness of the bar. The middle image will always have the thickness of the scroll bar, but the length will be scaled based on the frame size and the canvas size.

It scales so the ratio of the length of the bar to the length of the trough equals the size of the canvas to the size of the frame.

To use custom images, upload the three images you want to use as decals. It is recommended to use images that will scale well, particularly the middle image which needs to stretch. Then, in the Properties of the ScrollingFrame, change the BottomImage, MidImage, and TopImage to the appropriate urls.



This example will create a ScrollingFrame containing four ImageLabels, one in each corner. Note how it uses custom assets for the scrollbar:

  • gui
  • coding
  • ui