AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 03 Aug 2016 06:59 PM |
I've been messing around with making a slide bar selector. Had no idea where to start, and since the draggable property doesn't seem to do anything I took to free models for draggable gui scripts, and just deleted the following on the Y axis.
It worked, but if the mouse left the button it stopped moving with it. I tried some weird stuff with just mouse.Button1Down with some variables and just couldn't get it to work.
Is this even possible?
|
|
|
| Report Abuse |
|
|
j1sh
|
  |
| Joined: 31 Jul 2016 |
| Total Posts: 289 |
|
|
| 03 Aug 2016 07:00 PM |
| Yes, it's possible. Did it once a while ago, let me see if I can find the code. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
| |
|
j1sh
|
  |
| Joined: 31 Jul 2016 |
| Total Posts: 289 |
|
|
| 03 Aug 2016 07:19 PM |
Here it is, some of the math is stolen, forgot the original creator.
https://www.roblox.com/item.aspx?id=471860369 |
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 03 Aug 2016 07:21 PM |
| Slider is already part of the RbxGui library, IIRC. |
|
|
| Report Abuse |
|
|
j1sh
|
  |
| Joined: 31 Jul 2016 |
| Total Posts: 289 |
|
| |
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 03 Aug 2016 08:20 PM |
Oh yea GUI lib looks kinda cool. Never knew about that.
Tried it out though, and it gives you a very small amount of customization, and will not let me set the width in scale, only offset.
Thanks guys, I'll be using j1sh's slider thing, setting the max val to 32 and then dividing by 8 to get a range of 4, and increments of .25 so it will work to lower/raise the vehicle suspension I've made!
|
|
|
| Report Abuse |
|
|
Mokuteki
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 906 |
|
|
| 03 Aug 2016 08:51 PM |
| XD sliding is the easiest thing to scripting, haven't you ever read wiki? Ever see something called UDim2? ye that's what that does mate. Not really that hard, idk why you post on something you can search on wiki. |
|
|
| Report Abuse |
|
|