Your title's grammar, amazing.
I'm assuming you'd like to know how to make a GUI pop up when you click a text/image button.
So, That's what I'll tell you.
Sense we'll need the local player's mosue, we'll start off with this:
1 | repeat wait() until game.Players.LocalPlayer |
Why that?
So the local player is there before anything else can happen. (Preventing errors)
Next we get the mouse;
1 | local mouse = game.Players.LocalPlayer:GetMouse() |
Now, lets be neat, and tell it the directory of our frames and buttons.
1 | local FirstFrame = script.Parent.Parent |
2 | local PopUpFrame = script.Parent.Parent.Parent.PopUp |
3 | local Button = script.Parent |
Next we add the OnClick function, and the popup.
02 | if PopUpFrame.Visible = = true then |
03 | PopUpFrame.Visible = false |
05 | elseif PopUpFrame.Visible = = false then |
06 | PopUpFrame.Visible = true |
10 | Button.MouseButton 1 Click:connect(onClick) |
and then your done.
The full script would look something like this:
01 | repeat wait() until game.Players.LocalPlayer |
02 | local mouse = game.Players.LocalPlayer:GetMouse() |
04 | local FirstFrame = script.Parent.Parent |
05 | local PopUpFrame = script.Parent.Parent.Parent.PopUp |
06 | local Button = script.Parent |
09 | if PopUpFrame.Visible = = true then |
10 | PopUpFrame.Visible = false |
12 | elseif PopUpFrame.Visible = = false then |
13 | PopUpFrame.Visible = true |
17 | Button.MouseButton 1 Click:connect(onClick) |