Draggable GUI That Can’t Go Off-Frame

I’m making a button with UIDragDetector, but it keeps coming out of the bar, I’ve tried several things, how can I keep it within the limit of the bar?

image

image

https://gyazo.com/a64f5ae4fd2d667982f795ce67211667

1 Like


Wouldn’t this solve your issue?

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.