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 do I change the size of a Frame in a for loop?

Previous Thread :: Next Thread 
Lagune is not online. Lagune
Joined: 22 May 2012
Total Posts: 564
21 Aug 2016 05:51 AM
Tried this, but it set the size to 0,0,0,0

for i = 1,100 do
wait(0.01)
script.Parent.Size = UDim2.new(script.Parent.Size - Vector2.new(0.01,0,0.01,0))
end


Report Abuse
Encladeus is online. Encladeus
Joined: 27 Dec 2010
Total Posts: 3839
21 Aug 2016 05:54 AM
For loops don't have frames.
Report Abuse
vexieh is not online. vexieh
Joined: 22 Oct 2009
Total Posts: 3468
21 Aug 2016 05:56 AM
Are you trying to make the frame grow inside a loop?


Report Abuse
Sorcism is not online. Sorcism
Joined: 09 Jul 2015
Total Posts: 6906
21 Aug 2016 06:07 AM
@Vexieh

Yes.


Report Abuse
vexieh is not online. vexieh
Joined: 22 Oct 2009
Total Posts: 3468
21 Aug 2016 06:13 AM
Why not just use TweenSize? (http://wiki.roblox.com/index.php?title=API:Class/GuiObject/TweenSize)
local time_ = 2
wait(2) --replace with w/e script you have to wait for the player and the gui to load
script.Parent.Frame:TweenSize(UDim2.new(.2, 0, .3, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, time_, true)


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