|
| 11 Jun 2017 10:09 PM |
I have multiple frames that I need to tween "open and close", so I decided to make 2 StringVariables in each frame, OpenedPos and ClosedPos. The value is where I want the frame to tween.
Whenever I try to use it, it ignores the value and tweens to 0,0,0,0. There aren't any errors showing.
OpenedPos.Value = .5,-200,.5,-150
frame:TweenPosition(UDim2.new(frame:FindFirstChild("OpenedPos").Value),"Out","Sine",1)
Is this something you can do?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Jun 2017 10:24 PM |
OpenedPos.Value = ".5,-200,.5,-150" --- f = frame:FindFirstChild("OpenedPos").Value:gmatch("%-?%d*%.?%d+") frame:TweenPosition(UDim2.new(f(),f(),f(),f()),"Out","Sine",1) |
|
|
| Report Abuse |
|
|
| |
|