I have made a draggable gui with a script where it allows you to drag the frame where ever you please. I want to make it so you can only drag it in this one area and prevent it from being dragged outside of it. Is there a way to do that? The only way I can think of is to make it so when the frame reaches a certain x or y coordinate, the drag is disabled.
COMMUNITY QUESTION
How to limit a draggable gui in a certain location?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Use math.clamp/math.min/math.max to limit the Offset coordinates of your GuiObject to the specific position