Frame

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

Up and coming

A plain box with a background, rounded corners, an outline and a soft shadow, for cards, panels, pills and popups.

Corners, outline and shadow are properties of the Frame itself, drawn together as one shape, with no extra objects to add. CornerRadius and StrokeThickness scale with the box's height, so 0.5 makes a pill and the outline keeps its weight at any size. Leave StrokeColor nil and the outline is the background colour shaded toward black.

Made with Instance.new("Frame") or Clone().

Properties

NameTypeDefaultDescription
BackgroundColorColor3
BackgroundTransparencynumber
CornerRadiusUDimScale is a fraction of the box's height, so 0.5 makes a pill; offset is in pixels.
StrokeColorColor3?The outline colour; nil derives it from BackgroundColor, shaded toward black.
StrokeThicknessUDimThe outline's width, a scale of the box's height plus pixels; 0 means no outline.
StrokeTransparencynumber
ShadowSizeUDimA soft drop shadow for cards and popups; 0 means no shadow.
ShadowOffsetVector2
ShadowColorColor3
ShadowTransparencynumber
From UIObject 19
From ScreenItem 2
From ShotInstance 33

Subclasses