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 TweenPositon????

Previous Thread :: Next Thread 
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:02 PM
In Gui's???

I'm trying to learn how to use it...But i don't understand...

http://wiki.roblox.com/index.php/TweenPosition
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:06 PM
Just give me a Example of how it should be done.
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:11 PM
[ Bump ]
Report Abuse
EndCredits is not online. EndCredits
Joined: 02 May 2011
Total Posts: 263
25 Jul 2011 01:14 PM
TweenPosition was hard for me to learn too, but once learned it is very simple.

Here is a quick example:


BUTTON:TweenPosition(UDim2.new(0.5,0,0.5,0),_,"Linear",waitTime, true)


This will move the button to the centre of the screen.

NOTE: If you want the button to go to the EXACT centre, I suggest get the size of the button, deviding it by two and put -ANSWER inside the zeros.

EXAMPLE

Size: 0, 20, 0, 20


BUTTON:TweenPosition(UDim2.new(0.5,-10,0.5,-10),_,"Linear",waitTime, true)

Hope this helped!

-End
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:18 PM
It doesn't work...Is this the way?:

b = script.Parent
b:TweenPosition(UDim2.new(0,150,0,150),_,"Linear",0.7, true)


"b = Frame"
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:21 PM
HELP!!!!!!11
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:26 PM
Come on!!
Report Abuse
EndCredits is not online. EndCredits
Joined: 02 May 2011
Total Posts: 263
25 Jul 2011 01:26 PM
script.Parent:TweenPosition(UDim2.new(0,150,0,150),_,"Linear",0.7, true)
Report Abuse
EndCredits is not online. EndCredits
Joined: 02 May 2011
Total Posts: 263
25 Jul 2011 01:27 PM
Try that.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
25 Jul 2011 01:29 PM
LOL. That's incorrect, EndCredits.

Try this:

script.Parent:TweenPosition(UDim2.new(0,150,0,150), "Out", "Quad", 1, false, nil)
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
25 Jul 2011 01:32 PM
*Gives SoulStealer9875 Cookie*

Thanks!!!
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
25 Jul 2011 01:50 PM
No problamo.
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