Code: Select all
{OnMouseDown = Function()
Local DragBarIntervalID = SetInterval(Nil, Function()
If IsLeftMouse() = False Then ClearInterval(DragBarIntervalID)
But I am wondering if there would be some way to get this done this way, without needing to use some outside Variable like Dragbar.IntervalID, or dedicated number.
Therefore, what is the order in which memory reservation for variables happen in this case?