Every time i click the button, the gui just instantly moves. This is the code
local button = script.Parent.Parent.Button.Button
local shop = script.Parent.Parent.Shop
local guiopen = false
button.MouseButton1Click:Connect(function()
if not guiopen then
guiopen = true
shop:TweenPosition(UDim2.new(0.318,0,0.219,0),Enum.EasingDirection.In,Enum.EasingStyle.Quad,3,false,nil)
elseif guiopen then
guiopen = false
shop:TweenPosition(UDim2.new(0.318,0,100,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,3,false,nil)
end
end)

3 comments
whoops
wait no
look at the full code