So the problem seems to be with line 10, the GUI doesn't seem to tween back to its original position when it's clicked again and I can't figure out why. There are no errors in the output.
local gui = script.Parent.Parent
local hasClicked = false
gui.Sizeout.MouseButton1Down:connect(function()
if hasClicked ~= true then
hasClicked = true
gui:TweenPosition(UDim2.new(0, 0, 0.3, 0), "Out", "Sine")
gui.Sizeout.Text = "<"
elseif hasClicked == true then
gui:TweenPosition(UDim2.new(0, -0.2, 0.3, 0), "In", "Sine") --tweening here not working?
gui.Sizeout.Text = ">"
end
end)
