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

Create draggable GUI frame?

Asked by 6 years ago

I am trying to make a sliding puzzle in roblox but I need to be able to drag gui elements for it. I know of the draggable property of Frames, but this is deprecated. Unfortunately, Frames do not have the mousebutton1 events so that is also a no go. Anyone know of a way to do this?

0
We don't give scripts, please make/try your own script and if something stops you, come to us and we will help. mixgingengerina10 223 — 6y
1
Best bet would be to make the frame a TextButton and listen for the MouseButton1Down and MouseButton1Up events User#19524 175 — 6y
0
@mixgingengerina10 I was not asking for a script, I was asking for a few pointers on how to do this differently. Rubenske1 89 — 6y
0
@Denny9876 if you make your comment a answer I will accept it! thanks everyone, all your ideas were great :) Rubenske1 89 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

insert a script to the frame.

script:

script.Parent.Active = true
script.Parent.Draggable = true

I know draggable is deprecated, but i think it works, i tried that once, it worked.

0
Well, it's deprecated and has a low chance of happening because roblox removed it. mixgingengerina10 223 — 6y
0
Draggable is deprecated and OP clearly said he didn't want to use Draggable. User#19524 175 — 6y
0
I was indeed looking for a not deprecated way Rubenske1 89 — 6y
0
It works tho. ieatandisbaconhair 77 — 6y
Ad

Answer this question