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: TweenSize help

Previous Thread :: Next Thread 
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Aug 2013 06:57 PM
function animate()
while true do
wait(.1)
local sp = script.Parent
local spp = sp.Parent
local a = spp.GameFrame.top.b
local b = sp.dna.Value
if b < 100 then
repeat
wait(.1)
a:TweenSize(UDim2.new(0, b, 0, 20),1)
until b >= 100
end
if b >= 100 then
repeat
wait(.1)
a:TweenSize(UDim2.new(0, 100, 0, 20),1)
until b < 100
end
end
end
animate()

The tweensize does not work. No output.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Aug 2013 07:00 PM
bump
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
17 Aug 2013 07:01 PM
a:TweenSize(UDim2.new(0, b, 0, 20),"Out","Quad",1,true)
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Aug 2013 07:02 PM
Still didn't work .-.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
17 Aug 2013 07:05 PM
floattime = 3

if b < 100 then
a:TweenSize(UDim2.new(0, b, 0, 20),"Out","Linear",floattime)
repeat wait(0.03) until b>100
end

You also cannot make a value/property into a variable, you have to make the object into a variable and then put .Value on to it.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
17 Aug 2013 07:12 PM
Never mind, you don't have an issue with your variable. Well, you do, but not what I said.

Your variable (b) isn't going to change when that value changes, it will stay the same number as it was at the top of the script. To fix this, do what I suggested earlier.
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