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: Tween

Previous Thread :: Next Thread 
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
26 Jul 2015 10:09 PM

Can someone give me a script that moves the GUI Frame from what it is already at {0, -200},{0.48, 0}, going to {0, 0},{0.48, 0}, in a sliding motion on the click of Script Parent

I'm just here so I don't get fined
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
26 Jul 2015 10:11 PM
bruh
http://wiki.roblox.com/index.php?title=Tweening#TweenPosition

while true do the do
Report Abuse
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
26 Jul 2015 10:12 PM
It's not making sense, but if I saw an actual example that filled in the numbers, it would make more sense


I'm just here so I don't get fined
Report Abuse
baldo46 is not online. baldo46
Joined: 28 Jul 2008
Total Posts: 1254
26 Jul 2015 10:12 PM
gui:TweenPosition(UDim2.new(0,0,0.48,0);
Report Abuse
JonathanW123 is online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
26 Jul 2015 10:13 PM
OnClick?


I'm just here so I don't get fined
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
26 Jul 2015 10:15 PM
button.MouseButton1Down:connect(function()
--blados function
end)

while true do the do
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
26 Jul 2015 10:16 PM
if those coordinates are position,

script.Parent.MouseButton1Click:connect(function()
script.Parent:TweenPosition(UDim2.new(0, 0, 0.48, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, true) --[[set to true if you want other guis to be able to be tweened at the same time, else, set it to false]]
end)

if they are size,

script.Parent.MouseButton1Click:connect(function()
script.Parent:TweenSize(UDim2.new(0, 0, 0.48, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, true) --[[ set to true if you want other guis to be able to be tweened at the same time, else, set it to false]]
end)

play around with the different easing directions and styles, you'll probably find someting that looks better than the others
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