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 7 years ago
Edited 7 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

01local frame = script.Parent.Parent.Frame
02local open = false
03 
04script.Parent.MouseButton1Down:connect(function()
05    if open == false then
06        frame:TweenPosition(UDim2.new(0.896, 0,-0.005, 0),'Out','Bounce',.5)
07        open = true
08    else
09        frame:TweenPosition(UDim2.new(0.896, 160,-0.005, 0),'Out','Bounce',.5)
10        open = false
11    end
12end)

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?