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: How do you use TweenPositonAndSize

Previous Thread :: Next Thread 
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
18 Nov 2011 06:44 PM
i know it's like

script.Parent:TweenPositonAndSize()
but i don't know what goes in between the ()'s
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
18 Nov 2011 06:48 PM
GuiObject:TweenSizeAndPosition(UDim2.new(0,0,0,0), UDim2.new(0,0,0,0))

The first UDim2 value is size.
The second is position.

"I WILL GIVE YOU BACON." - Deadmau5
~Scarfacial
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
18 Nov 2011 06:58 PM
Thankyou Very Much
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
18 Nov 2011 07:01 PM
It's actually...

    local Gui, DesiredSize, DesiredPosition, WaitTime
    
    Gui = Workspace.ScreenGui.Frame
    DesiredSize = UDim2.new(0, 500, 0, 500)
    DesiredPosition = UDim2.new(0.5, -250, 0.5, -250)
    WaitTime = 0.3
    -- Centered Gui, BTW.
    
    Gui:TweenSizeAndPosition(DesiredSize, DesiredPosition, "Out", "Quad", WaitTime, true)
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
18 Nov 2011 07:02 PM
Well either way thankyou
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
18 Nov 2011 07:07 PM
You only need the first 2 arguments though.
The rest are optional, just for more customization.

"I WILL GIVE YOU BACON." - Deadmau5
~Scarfacial
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