01 | local TweenService = game:GetService( "TweenService" ) |
02 | local label = script.Parent |
03 |
04 | local Info = TweenService.new( |
05 | 5 , --Length |
06 | Enum.EasingStyle.Sine, --Easing Style |
07 | Enum.EasingDirection.Out, --Easing Direction |
08 | 0 , --Times repeated |
09 | false , --Reverse |
10 | 1 --Delay (seconds) |
11 | ) |
12 |
13 | local Goals = |
14 | { |
15 | Position = UDim 2. new ( { 0.54 , 0 } , { 0.359 , 0 } ); |
Layout: https://i.gyazo.com/011f7d0f8baebd83a09ee9c93a2b0a54.png
I am trying to make the text label change position using the tween service
Your code is fine. You just mixed up a word.
Instead of using TweenInfo.new
, you used TweenService.new
.
By the way, you don't need to go through all that to tween positions. You could instead just use TweenPosition.
1 | gui:TweenPosition(UDim 2 ,EasingDirection,EasingStyle,Time,Override,Callback) |
And there's no need to put the {},{} in your UDim2s. It's unnecessary.