Ad
Log in to vote
0

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

Asked by
SanityMan 239 Moderation Voter
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?

Thank you for your help!

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

3 answers

Log in to vote
0
Answered by 7 years ago

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
Ad
Log in to vote
0
Answered by 7 years ago

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. ~

Log in to vote
0
Answered by 7 years ago

Just Look in properties of the Gui in Roblox studio. There should be a box that you can check named "Draggable". Good Luck!

Answer this question