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: How to tween two guis at once?

Previous Thread :: Next Thread 
SeashellsAndSand is not online. SeashellsAndSand
Joined: 02 Oct 2012
Total Posts: 140
09 Aug 2015 10:34 AM
Here's the code I have:

script.Parent.Gui1:TweenPosition(UDim2.new(0, 0, 0, 0))
script.Parent.Gui2:TweenPosition(UDim2.new(0, 5, 0, 5))

It tweens Gui1 first and then Gui2

How do I make it so both of them tween at the same time?

thanks in advance!
Report Abuse
SeashellsAndSand is not online. SeashellsAndSand
Joined: 02 Oct 2012
Total Posts: 140
09 Aug 2015 10:36 AM
b
Report Abuse
MKofOrbiter is not online. MKofOrbiter
Joined: 28 Aug 2010
Total Posts: 910
09 Aug 2015 10:39 AM
Are are aware that, your tweening won't work.
Report Abuse
cybersquat is not online. cybersquat
Joined: 02 Aug 2015
Total Posts: 5835
09 Aug 2015 10:39 AM
local hi = coroutine.wrap(function()
script.Parent.Gui1:TweenPosition(UDim2.new(0, 0, 0, 0))
end)

local ho = coroutine.wrap(function()
script.Parent.Gui2:TweenPosition(UDim2.new(0, 5, 0, 5))
end)

hi()
ho()
Report Abuse
SeashellsAndSand is not online. SeashellsAndSand
Joined: 02 Oct 2012
Total Posts: 140
09 Aug 2015 10:40 AM
@mkof lmao noob it worked just fine
Report Abuse
SeashellsAndSand is not online. SeashellsAndSand
Joined: 02 Oct 2012
Total Posts: 140
09 Aug 2015 10:41 AM
@cyber thx it worked!
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