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 » Scripters
Home Search
 

Re: GUI Slider

Previous Thread :: Next Thread 
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
01 Jul 2016 02:37 PM
im making an anim editor but i need a UI slider and am having a hard time making one, anyone know how?


ninjman654 R$100
Report Abuse
spartan6241 is not online. spartan6241
Joined: 15 Jun 2014
Total Posts: 793
01 Jul 2016 02:38 PM
You mean something like this?
http://wiki.roblox.com/index.php?title=API:Enum/EasingStyle
Report Abuse
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
01 Jul 2016 03:01 PM
no like when u use the Roblox's anim editor and u can look move through each frame


ninjman654 R$100
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
01 Jul 2016 03:02 PM
Every time u move it, get both sides of the certain Axis u move it on, so on X Axis it would be like this

local left = Btn.AbsolutePosition.X
local right = (Btn.AbsolutePosition + Btn.AbsoluteSize).X
local start = Frame.AbsolutePosition.X
local _end = (Frame.AbsolutePosition + Frame.AbsoluteSize).X
local current = 0

Then u see if it's out of Bounds

if left < start then
current = 0
elseif right > _end then
current = _end - (right - left)
else
current = 1 - (Mouse.X / _end)
end

And then u just move the button using 'current' as the Scale on the X Axis on this example. I haven't Scripted in so long, so tell me if I made a mistake :P
Report Abuse
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
01 Jul 2016 03:04 PM
thx KAAK


ninjman654 R$100
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
01 Jul 2016 03:09 PM
Nb, tell me how it goes (I think I made an error somewhere, but the code looks kinda good so far)
Report Abuse
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
01 Jul 2016 03:09 PM
would u be interested in helping me make a module for the Anim Editor, mainly cosmetic stuff


ninjman654 R$100
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
01 Jul 2016 03:13 PM
Idk, I don't have Skype and without it, it's not as easy to Communicate :/
Report Abuse
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
01 Jul 2016 03:17 PM
What about through Roblox


ninjman654 R$100
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
01 Jul 2016 03:19 PM
If I have Time, as I don't spend that much time on Roblox anymore :/
Report Abuse
ninjman654 is not online. ninjman654
Joined: 22 Sep 2012
Total Posts: 23
01 Jul 2016 03:20 PM
np u let me know


ninjman654 R$100
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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