Skip to content

Class · inherits Instance

ScreenshotHud

Official docs ↗

A 2D user interface that allows users to capture and save screenshots to their local device.

About ScreenshotHud

The ScreenshotHud is a 2D user interface that allows users to capture and save screenshots to their local device. It consists of the following UI elements:

  • An overlay containing the experience name and Roblox branding. These remain on screen when a screenshot is taken, although the experience name can be disabled through the ScreenshotHud.ExperienceNameOverlayEnabled property.
  • A camera button that hides all UI except for the overlay and takes a screenshot.
  • A close button that closes the ScreenshotHud.

Properties 8

  • CameraButtonIcon: ContentIdAsset ID of the icon used for the camera button.
  • CameraButtonIconContent: ContentThe image content used as the icon for the camera button.

    The image Content used as the icon for the camera button on the ScreenshotHud. This is the Content-type equivalent of the legacy ScreenshotHud.CameraButtonIcon property and supports asset URIs. When set, the camera button displays the specified image instead of the default icon.

  • CameraButtonPosition: UDim2Screen location of the camera button.
  • CloseButtonPosition: UDim2Screen location of the close button.
  • CloseWhenScreenshotTaken: booleanWhether the ScreenshotHud closes automatically when a screenshot is taken.

    Determines whether the ScreenshotHud closes automatically when a screenshot is taken.

  • HideCoreGuiForCaptures: booleanWhether Roblox's core GUI is hidden while a screenshot is captured.

    Determines whether Roblox's core GUI is hidden while a screenshot is captured through the ScreenshotHud. Defaults to true, so any enabled CoreGuiType elements are hidden for the duration of the capture and restored afterward. A saved capture is only flagged as GUI-free when both this property and ScreenshotHud.HidePlayerGuiForCaptures are enabled.

  • HidePlayerGuiForCaptures: booleanWhether the local player's GUI is hidden while a screenshot is captured.

    Determines whether the local player's GUI is hidden while a screenshot is captured through the ScreenshotHud. Defaults to true, so any enabled ScreenGui instances under the Players.LocalPlayer's PlayerGui are hidden for the duration of the capture and restored afterward. A saved capture is only flagged as GUI-free when both this property and ScreenshotHud.HideCoreGuiForCaptures are enabled.

  • Visible: booleanDetermines whether the ScreenshotHud is visible.

ScreenshotHud also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.