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:

Previous Thread :: Next Thread 
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 06:43 PM
script.Parent.TextLabel.Size = UDim2.new(0,1,0,0)
script.Parent.TextLabel.BackgroundTransparency = 0

wait(1)
for q = 0,570 do
wait()
script.Parent.TextLabel.Size = script.Parent.TextLabel.Size + UDim2.new(0,1,0,0)
end




If I fix the locations, I can paste it into the command bar, and it will work fine. When I go into a game, it doesn't work.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:01 PM
Bump :P
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
10 Mar 2013 07:04 PM
Output?
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:05 PM
None.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
10 Mar 2013 07:07 PM
So you're saying this does.. absolutely nothing?
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:08 PM
Yes. Exactly.

You could try it in a GUI yourself. I've had this problem before.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
10 Mar 2013 07:09 PM
Did you just click Play? Or did you go into solo/server?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
10 Mar 2013 07:09 PM
I think it would be better to use tweensize in this case.

http://wiki.roblox.com/index.php/TweenSize_(Method)

¤ ¤ † K M <( •д• )> X D † ¤ ¤
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
10 Mar 2013 07:10 PM
@Knight, I was going to mention that too him after we figured out why the script wasn't even running. :P
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:12 PM
I hit play.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
10 Mar 2013 07:13 PM
Scripts will not run unless they are a descendant of Workspace (but not the Camera), PlayerGui, or Backpack.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:14 PM
The script is in a GUI, thus PlayerGui.

I've worked around this problem before. I used basically the same code EXCEPT, I was using a localscript. Would that make the difference?

All Things ROBLOX - It ain't that hard.
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
10 Mar 2013 07:15 PM
You have to do 'Test>Play Solo' or save and press 'Play'.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
10 Mar 2013 07:16 PM
I suppose it would be easier using LocalScripts in GUIs, it's my preference. Though be sure to add a safety Wait() at the top of the script, as that's what LocalScripts usually need.

¤ ¤ † K M <( •д• )> X D † ¤ ¤
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:19 PM
I feel like an idiot. The script was disabled. (though I don't remember disabling it)

I have a decent processor, so the loading bar goes across nicely, although on my older computer it's a bit choppy.

If I use this Tween method, will that make it smoother for people will not so good processors?

All Things ROBLOX - It ain't that hard.
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
10 Mar 2013 07:23 PM
Yes, tweening GUIs makes them move smoothly across the screen. You can also add effects to the movement.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:27 PM
How would I use it? The wiki is a bit confusing.

Can I be shown an simple example of how to change to use it in a GUI? (the code)

After that I can probably figure out how to use it for what I need it for.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
10 Mar 2013 07:30 PM
GuiObject:TweenSize(
UDim2.new(0,500,0,10) -- End size
,"Out" -- InOut
,"Bounce" -- EasingStyle
,1.5 -- Time it takes to complete in measured in seconds
,true -- Override any other tweening, and replace it with this tween
,function()
-- Callback
print("This function will fire when the tween ends")
end)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
10 Mar 2013 07:31 PM
GUIOBJECT:TweenSize( endSize, easingDirection, Enum easingStyle, floattime, booloverride, functioncallback )

GUIObject:TweenSize( UDim2.new( 0, 100, 0, 100), "Out", "Linear", 5, true)

¤ ¤ † K M <( •д• )> X D † ¤ ¤
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:34 PM
Thanks.

All Things ROBLOX - It ain't that hard.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
10 Mar 2013 07:35 PM
Oops forgot to get rid of my siggy :P
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