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)