Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to limit a draggable gui in a certain location?

Asked by 4 years ago

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.

0
Use math.clamp/math.min/math.max to limit the Offset coordinates of your GuiObject to the specific position darkelementallord 686 — 4y

Answer this question