local folder = script.Parent.Parent.TypesOfShop
local popup = folder.Spendoins
local frame = script.Parent.Parent
script.Parent.MouseButton1Down:Connect(function()
frame:TweenPosition(UDim2.new(1.5,0,0.5,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 2)
wait(3)
popup:TweenPosition(UDim2.new(0.5,0,0.5,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 2)
end)
So basically, the first tween, frame:TweenPosition(UDim2.new(1.5,0,0.5,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 2) works fine. It slides off, but after the wait(3), that tween does not do anything. Any help is appreciated
Is the popup in the frame? It could be since you’re moving the frame first which moves it and the children of it, and then it tries to move the popup relative to the position of the frame. Maybe try to unparent the popup from the frame?