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
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
| |
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
| |
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 10 Mar 2013 07:15 PM |
| You have to do 'Test>Play Solo' or save and press 'Play'. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 10 Mar 2013 07:35 PM |
| Oops forgot to get rid of my siggy :P |
|
|
| Report Abuse |
|
|