Help with TweenService for UIs

Hello! I have just found out about TweenService, so I decided to test it out. However, it isn’t working how it should be. Basically, when you click a button, a frame will show up and show the store. Thing is, the X isn’t tweening it back to it’s original position.
Here’s the script.

local frame = script.Parent.Parent.Frame
		
script.Parent.MouseButton1Click:Connect(function()
	frame:TweenPosition(UDim2.new(0.329, 0,0.269, 0),"Out","Quad")
end)

script.Parent.Parent.Frame.TextButton.MouseButton1Click:Connect(function()
	frame:TweenPosition(UDim2.new(0.329, 0,10.9, 0),"In","Quads",0.7)
end)
1 Like

Not too sure about this, but I think you have to use Enum.EasingDirection.Out instead of "Out" (and for all the others too respectively): GUI Tweening

1 Like

Thing is, the first part of the script works, but the second one doesnt.

1 Like

It’s because you said “Quads” instead of “Quad”

4 Likes

I really need to recheck my spelling in scripts, agh. Thanks!

1 Like