Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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!

3 comments

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.

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?

0

If you want to see for yourself, it is http://www.roblox.com/Scripting-Showcase-place?id=125409552

3 answers

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.