Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to merge two GuiTweens together?

Asked by 3 years ago
Edited 3 years ago

So for more explanation if I put a tween for a GUI that moves it to the left, and then wait half a second and tween it again it wont do anything and the override argument of it does not help either cause it just overrides it which is not what I want. I want something like I would tween it to the right wait half a second and make it go up, but I would need to merge them both together to get the result I want. This is the script that I used.

local Gui = script.Parent
local ThingToTween = Gui.MainUp
local Down = Gui.MainDown


ThingToTween :TweenPosition(
    UDim2.fromScale(1, 0),
    Enum.EasingDirection.In,
    Enum.EasingStyle.Sine,
    1
)


wait(0.5)

ThingToTween :TweenPosition(
    UDim2.fromScale(0, -0.5),
    Enum.EasingDirection.In,
    Enum.EasingStyle.Sine,
    1
)
-- This wont work and even if I used to override argument It does not give me the result I want which is to make it go to the right and then afterwards make it go up.

Answer this question