So I made a simple GUI tween where a position of a tween get tweened when called.
I am also messing with how fast it goes and for different buttons instead of creating multiple tween I want to edit the tween info on how fast it can go.
heres the code:
local tweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local tween = TweenService:Create(script.Parent.TextLabel, tweenInfo, {Position = UDim2.new(0, 0, 0.99, 0)})
tween:play()
You have to declare the numbers in array for instance and then check which part is declared with which number and you just get a number from an array and create tween with this number.