Tweening yesterday with something else. Now I just get why it doesn't today, the rest is sort of tittle explanatory.

script:

gui = script.Parent.Parent.Shop
--(0.26, 0, 0.2, 0)
script.Parent.MouseButton1Click:connect(function()
	if gui.Position == UDim2.new(0.62, 0, 0.2, 0) then
		gui:TweenPosition(UDim2.new(0.26, 0, 0.2, 0), "Out", "Quad", 3)
	end
end)

2 comments

0

Are you sure the condition in the if statement is true? Is that the gui's position?

0

Yup, double checked.