0

# How to make a GUI Frame/it's descendants drag around?

SanityMan 239
7 years ago

So basically, I have the following setup:

ScreenGui
ScrollingFrame
TextButton
TextLabel
TextLabel


I plan to create this in a script, but I don't know which values to set to make it draggable. I have looked through the list, and "Draggable" does seem like an obvious choice, but I can't seem to get it to drag. Is there a combination of booleans I need to have enabled/disabled?

1
I believe you must have Active and Draggable enabled, but like McLavaArmy said, you can't drag it in studio unless you're in test mode or online. M39a9am3R 3210 — 7y
0
Thank you! I did not have Active set to true. But now when I click it to drag it in my game, it drags, but doesn't stop dragging. Any ideas? SanityMan 239 — 7y
0
If you want to see for yourself, it is http://www.roblox.com/Scripting-Showcase-place?id=125409552 SanityMan 239 — 7y

0

For the scrolling frame, turn the drag-gable and the active property to true. For the things inside of that scrolling frame, turn their drag-gable and active properties to false.

0
The "Draggable" property is now depreciated. See here: https://wiki.roblox.com/index.php?title=API:Class/GuiObject/Draggable OMG_Gaming404 73 — 3y
0

The "Draggable" Can only be draged by a user in the game. You can't move it in studio. You have to position it yourself.

Best regards, Nathan.

~ Lava, from freedom comes elegance. ~