Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
UIDragDetectorResponseStyle
Describes how the clicked GuiObject will be treated once the desired motion has been calculated.
Items
| Name | Value | Description |
|---|---|---|
| Offset | 0 | Move by the Offset values of the detector's parent's GuiObject.Position value. |
| Scale | 1 | Move by the Scale values of the detector's parent's GuiObject.Position value. |
| CustomOffset | 2 | The UI element will not move at all, but the Offset values of the detector's DragUDim2 will still be updated and the detector's events will still fire, allowing you to respond to drag manipulation however you'd like. |
| CustomScale | 3 | The UI element will not move at all, but the Scale values of the detector's DragUDim2 will still be updated and the detector's events will still fire, allowing you to respond to drag manipulation however you'd like. |
Offset
Move by the Offset values of the detector's parent's GuiObject.Position value.
| Field | Value |
|---|---|
| value | 0 |
Scale
Move by the Scale values of the detector's parent's GuiObject.Position value.
| Field | Value |
|---|---|
| value | 1 |
CustomOffset
The UI element will not move at all, but the Offset values of the detector's DragUDim2 will still be updated and the detector's events will still fire, allowing you to respond to drag manipulation however you'd like.
| Field | Value |
|---|---|
| value | 2 |
CustomScale
The UI element will not move at all, but the Scale values of the detector's DragUDim2 will still be updated and the detector's events will still fire, allowing you to respond to drag manipulation however you'd like.
| Field | Value |
|---|---|
| value | 3 |