EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 13 Feb 2014 01:03 PM |
like a scrolling bar.
I don't need you to write me a script. Just clarify some points for me.
Which event do I use? MouseButton1Down? How do I make it to where the x position can't be changed? Should I use Draggable?
ClipsDecendent doesn't help, you can still drag it off the bar.
How would you make a scroll GUI? |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 13 Feb 2014 01:04 PM |
You have a frame.
Inside, you have something.
When you click a arrow (ImageButton)
It changes the 'something's Y-Position |
|
|
| Report Abuse |
|
|
EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 13 Feb 2014 01:08 PM |
gee thanks.
i already know that.
But there are other ways to do this.
I'm not looking for "when you click".
I'm looking for specifics on which way is the best way. |
|
|
| Report Abuse |
|
|
truefire2
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 5330 |
|
|
| 13 Feb 2014 01:29 PM |
Do something like this. Yeah, I copy and pasted this off one of my own scroll bars. Drag is the part you drag.
Drag.Changed:connect(function() if (Drag.Position.Y.Offset)< "A NUMBER" then -- whatever u want elseif (Drag.Position.Y.Offset)> "A NUMBER" then script.Parent.bar.scrollbar.Position = UDim2.new(0,0,0,Drag.Position.Y.Offset) -- STOPS IT GOING ALL OVER -- whatever u want end end) |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 13 Feb 2014 01:31 PM |
I got an idea:
Have a frame, then put the dragging thing inside it.
Use MouseEnter() Method on the frame, get the Mouse's y-coordinate and position the dragging thing |
|
|
| Report Abuse |
|
|
EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 13 Feb 2014 01:39 PM |
No....
Terrible idea.
I don't want it to activate when the mouse is over it. |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 13 Feb 2014 01:44 PM |
| Good luck then, hope you find someone else... |
|
|
| Report Abuse |
|
|
|
| 13 Feb 2014 01:45 PM |
I'm not sure about A LOT of it,but If thing.Position.X>1 or thing.Position.X<0 then thing.Position.X = 0? That kinda thing?idk,I don't work with guis much |
|
|
| Report Abuse |
|
|