This will explain how to create and use a Drag object
A "drag" is an object that allows for dragging on the gui screen with objects and adaptively changes the x and y values.
These x and y values save and load in when you enable and disable a script.
How to create a Drag object
1
var drag =createDrag({
2
initialX:100,
3
initialY:100
4
})
Copied!
Parameters
Parameter
Description
initialX
The initial x value for the drag
initialY
The initial y value for the drag
These values will be used when clicking the "Reset Draggables" button in the Gui Chat menu
How to use the Drag object
First off you will want to create the Drag object and then in an event you must set the width and height of the drag, this allows for you to adaptively change the width and height of the Drag.