generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Need help with a scrolling GUI.

Previous Thread :: Next Thread 
EcIiptic is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
13 Feb 2014 01:44 PM
Good luck then, hope you find someone else...
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image