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
 

GUI Help

Previous Thread :: Next Thread 
Cizox is not online. Cizox
Joined: 25 Dec 2009
Total Posts: 42220
14 Dec 2013 06:33 PM
title = script.Parent.Parent.Title
bar = script.Parent.Bar

bar:TweenSize(UDim2.new(0, 550, 0, 35), "Out", "Linear", 10)

if bar.Size == UDim2.new(0, 550, 0, 35) then
wait(0.1)
local titlePosition = coroutine.create(function()
title:TweenPosition(UDim2.new(0, 480, 0, -100), "In", "Linear", 2)
end)
local barPosition = coroutine.create(function()
bar.Parent:TweenPosition(UDim2.new(0, 480, 0, 850), "In", "Linear", 2)
end)
end

coroutine.resume(titlePosition)
coroutine.resume(barPosition)

no output. When the Bar Size equals 550, it doesn't run the code after the if. Any help?
Report Abuse
Akbarr is not online. Akbarr
Joined: 02 Nov 2012
Total Posts: 5547
14 Dec 2013 06:34 PM
It doesnt change size right away, put a wait(5) there and see if it works.
Report Abuse
Akbarr is not online. Akbarr
Joined: 02 Nov 2012
Total Posts: 5547
14 Dec 2013 06:35 PM
Wait you're taking 10 seconds to do it, so wait(10.5)
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
14 Dec 2013 06:35 PM
Tweening doesn't add a wait() for you, you'll have to add wait(10) manually.
Report Abuse
Cizox is not online. Cizox
Joined: 25 Dec 2009
Total Posts: 42220
14 Dec 2013 06:36 PM
The sizing works. What doesn't work is the TweenPosition.
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