Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Open a gui which closes the other gui? [closed]

Asked by 6 years ago
Edited 6 years ago

So I have tween guis. I want to know how you make it so you open a gui but then you open another gui which close the one you first opened.

I have a button in the button is the tween script

local frame = script.Parent.Parent.Frame
local open = false

script.Parent.MouseButton1Down:connect(function()
    if open == false then
        frame:TweenPosition(UDim2.new(0.896, 0,-0.005, 0),'Out','Bounce',.5)
        open = true
    else
        frame:TweenPosition(UDim2.new(0.896, 160,-0.005, 0),'Out','Bounce',.5)
        open = false
    end
end)

Any ways to add on with the button to make it so open the first gui and open another gui which closes the first gui.

Closed as Not Constructive by hiimgoodpack and Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?