For example this sets both the X and Y of the 'Ball'.
1 | local Ball = script.Parent |
2 |
3 | while true do |
4 | wait( 0.2 ) |
5 | Ball:TweenPosition(UDim 2. new( 0 , 0 , 0.339 , 0 ), 'Out' , 'Linear' , 1 ) |
6 | end |
This should keep the X static.
1 | local Ball = script.Parent |
2 |
3 | while true do |
4 | wait( 0.2 ) |
5 | Ball:TweenPosition(UDim 2. new( 0 ,Ball.AbsolutePosition.X, 0.339 , 0 ), 'Out' , 'Linear' , 1 ) |
6 | end |
This should keep the Y static.
1 | local Ball = script.Parent |
2 |
3 | while true do |
4 | wait( 0.2 ) |
5 | Ball:TweenPosition(UDim 2. new( 0 , 0.339 ,Ball.AbsolutePosition.Y, 0 ), 'Out' , 'Linear' , 1 ) |
6 | end |
I hope this is what you ment.