PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

DragBegin

This event fires when a player begins dragging the object.

See also

  • GuiObject/DragStopped

Parameters

Name Type Default Description

A UDim2 value of the position of the GuiObject before any drag operation began


Code Samples


(Deprecated) Print the Position of a GUI When Dragging Begins

The below example assumes it’s within a GuiObject such as a TextButton, and that the /GuiObject/Draggable property is set to true. It will print the UDim2 of where the player started dragging the object from.