Hi. I am trying to make a open gui. For the button that opens the gui, it needs 2 clicks instead of 1 click. How do i fix this?
function E()
local S = script.Parent.Parent.Parent.ScreenGui.Shop
S:TweenPosition(UDim2.new(0.272, 0,0.279, 0))
script.Parent.Parent.Parent.ScreenGui.Shop.Visible = true
end
script.Parent.MouseButton1Click:Connect(E)
