Help with dragging frame



Mouse.X/Y returns the position of the mouse on the screen, when adding both the startposition of the ui(for example 1000) and the position of the mouse(for example 1100) it will result in a big number which will be off screen.

you should subtract Mouse.X/Y with the position of the mouse when the drag has started