How can I improve the tweenservice() script?
Hello, anyone know how to use 1 tweenservice() several times? Let me explain:
01 | local mP = script.Parent |
03 | local tweenService = game:GetService( "TweenService" ) |
05 | local mpInfo = TweenInfo.new( |
07 | Enum.EasingStyle.Quad, |
08 | Enum.EasingDirection.InOut, |
14 | local mpInfoUp = TweenInfo.new( |
16 | Enum.EasingStyle.Sine, |
17 | Enum.EasingDirection.Out, |
27 | Position = Vector 3. new(- 10 , 1231.627 , 3.75 ); |
31 | Position = Vector 3. new(- 10 , 1206.627 , 3.75 ); |
35 | Position = Vector 3. new(- 10 , 1181.627 , 3.75 ); |
40 | Position = Vector 3. new(- 10 , 1261.627 , 3.75 ); |
43 | local mpTween 1 = tweenService:Create(mP, mpInfo, mpGoals 1 ) |
44 | local mpTween 2 = tweenService:Create(mP, mpInfo, mpGoals 2 ) |
45 | local mpTween 3 = tweenService:Create(mP, mpInfo, mpGoals 3 ) |
48 | local mpTweenUP = tweenService:Create(mP, mpInfoUp, mpGoals) |
I want it to repeat the same animation but not return to the position it had at first. Because if I do as I have done in the script right now, it will work but it will take too much time and become a real mess.
Is it possible to use something else than Position = Vector3.new()? Because if I would put the part that has the animation somewhere else it will always come back to that position. I want to be able to put it anywhere on my map without changing the script all the time I change the position of the part.
Thanks for the help,
Xsodar