We use cookies on this site to enhance your user experience

FrameStyle

FrameStyle

The FrameStyle Enum is used to set the style of a /Frame. Below is a comparison of all seven frame styles. The TextLabels are positioned at the top-left corner of the frame (at the /UDim2 value of {{0, 0}, {0, 0}}).

Example

Below is a screenshot containing all seven frame styles.
![FrameStyles.png]]1

Enums

Name Value Description
Custom0

Uses the frame’s /GuiObject/BackgroundColor3, /GuiObject/BorderColor3, and /GuiObject/BackgroundTransparency properties to determine the frame’s appearance. It has no padding; elements with the position {{0, 0}, {0, 0}} will appear at the frame’s top-left corner.

ChatBlue1

Causes the frame to appear similar to a /Dialog with its /Dialog/Tone property set to /Enum/DialogTone neutral. This has a padding of fifteen pixels on all sides.

RobloxSquare2

Causes the frame to appear as a translucent dark gray rectangle with a padding of five pixels on all sides.

RobloxRound3

Causes the frame to appear as a translucent dark gray rectangle with rounded edges. Like “RobloxSquare” this has a padding of five pixels on all sides.

ChatGreen4

Causes the frame to appear similar to a Dialog with its Tone property set to “Friendly.” Like “ChatBlue” this has a padding of fifteen pixels on all sides.

ChatRed5

Causes the frame to appear similar to a Dialog with its Tone property set to “Enemy.” Like “ChatBlue” and “ChatGreen” this has a padding of fifteen pixels on all sides.

DropShadow6

Causes the frame to appear as a translucent gray rectangle with blurred sides. The blur is more apparent on the bottom edge. It has a padding of eight pixels on all sides.