Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Making a button open a window on a gui?

Can someone please tell me how to make a GUI button open a GUI.

2 answers

I'd probly do something like this;

script.Parent.MouseButton1Click:connect(function() --I use LocalScripts when it comes to the Players
--Gui
gui=script.Parent:FindFirstChild("Frame")
if gui~=0 then
gui.Visible=true
end end) --Something like that

If you do not understand still, then contact me and I'll see what I can do to help.

Like this;

gui = script.Parent.Button
frame = script.Parent.Frame

gui.MouseButton1Down:connect(function()
frame.Visible = not frame.Visible;
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.