2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

InitialDockState

Specifies where a DockWidgetPluginGui is initially positioned in Roblox Studio when it is created for the first time. The value is supplied as the initialDockState field of DockWidgetPluginGuiInfo, which is passed to Plugin:CreateDockWidgetPluginGuiAsync(). If Roblox Studio has a saved layout entry for the plugin widget, that saved layout takes precedence and this value is ignored; DockWidgetPluginGui.HostWidgetWasRestored is true in that case.

Items

NameValueDescription
Top0The widget will appear docked above the game screen.
Bottom1The widget will appear docked below the game screen.
Left2The widget will appear docked to the left of the game screen.
Right3The widget will appear docked to the right of the game screen.
Float4The widget will not be docked to any side of the game screen, and instead can be freely dragged around.

Top

The widget will appear docked above the game screen.

FieldValue
value0

Bottom

The widget will appear docked below the game screen.

FieldValue
value1

Left

The widget will appear docked to the left of the game screen.

FieldValue
value2

The widget will appear docked to the right of the game screen.

FieldValue
value3

Float

The widget will not be docked to any side of the game screen, and instead can be freely dragged around.

FieldValue
value4