|
| 28 Apr 2012 10:28 AM |
local BK = game.Workspace.BK local BS = script.Parent.Parent.Parent.Blue_Statistics
while true do script.Parent.Text = BK.Value end
script.Parent.MouseButton1Down:connect(function() BS:TweenPosition(UDim2.new(0.25, 0, 0.22, 0), "Out", "Quad", 3, true) BS:TweenPosition(UDim2.new(0.25, 0, 1.8, 0), "Out", "Quad", 0.4, true) BS:TweenPosition(UDim2.new(0.25, 0, 0.2., 0), "Out", "Quad", 0.2, true) end
And guess what! My old friend called nothing in the output came back :D |
|
|
| Report Abuse |
|
|
iPremiumZ
|
  |
| Joined: 23 Jan 2012 |
| Total Posts: 6834 |
|
|
| 28 Apr 2012 10:30 AM |
| ewwwwwwww TweenPosition is scary. |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2012 10:31 AM |
local BK = game.Workspace.BK local BS = script.Parent.Parent.Parent["Blue_Statistics"]
while wait() do script.Parent.Text = BK.Value end
script.Parent.MouseButton1Down:connect(function() BS:TweenPosition(UDim2.new(0.25, 0, 0.22, 0), "Out", "Quad", 3, true) BS:TweenPosition(UDim2.new(0.25, 0, 1.8, 0), "Out", "Quad", 0.4, true) BS:TweenPosition(UDim2.new(0.25, 0, 0.2., 0), "Out", "Quad", 0.2, true) end)
3 things, you needed a [" "] before and after Blue_Statistics, because of the _. You needed a wait() in the while loop, so it won't crash. Finally you needed a close parenthesis because you opened one in (function().
Try that. |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2012 10:31 AM |
@iPremiumz, actually it's a lot more efficient than using a for loop.
~umad~ |
|
|
| Report Abuse |
|
|
iPremiumZ
|
  |
| Joined: 23 Jan 2012 |
| Total Posts: 6834 |
|
|
| 28 Apr 2012 10:31 AM |
| Yeah, but I'm terrrible with Tween, pretty good with for loops =P |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2012 10:33 AM |
@iPremium,
It's not that hard to master as long as you know how GUIs work. Read this, http://wiki.roblox.com/index.php/Tween
~umad~ |
|
|
| Report Abuse |
|
|
iPremiumZ
|
  |
| Joined: 23 Jan 2012 |
| Total Posts: 6834 |
|
|
| 28 Apr 2012 10:38 AM |
So is it like:
script.Parent.Position = UDim2.new(0.5, 0, 0.5, 0) script.Parent.Size = UDim2.new(0.5,0,0.5,0) script.Parent:TweenSizeAndPosition(UDim2.new(0,100,0,500),UDim2.new(0.5,-100,0.5,300), "Out", "Quad", 1) |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2012 10:39 AM |
Yes, that would work.
~umad~ |
|
|
| Report Abuse |
|
|