How to make Menu?

no i have abasndoned this ok so i wont bother

1 Like

It’s just a simple Frame which is made, then you have to insert a button GUI, make in invisible then you got to code it.

1 Like

To make any GuiButton clickable, you should use .Activated. Here’s a quick example:

-- This should be a in a LocalScript which is inside the button
script.Parent.Activated:Connect(function()
    print("Button pressed!")
    -- You can add more code here
end)
2 Likes

when i press the menu button frame, nothing happens.
its supposed to bring you to the MenuFrame.

This is supposed to be inside a Button, not a Frame.

2 Likes

Screenshot 2021-05-22 223837

1 Like

exit button script is supposed to exit you out of the menu frame

button script is supposed to bring you to the menu frame after clicking the menu button frame

and help button script is supposed to bring you to Help after clicking the Help button frame in the menu frame (help is a part of menu frame)

In that case, you just use .Activated and instead of printing text, you set the .Visible property to true or false. You can also add tweening to make the transition look better. Here’s a simple example:

local toShow = nil -- Frame to show
local toHide = nil -- Frame to hide

script.Parent.Activated:Connect(function()
    print("Button pressed!")
    toShow.Visible = true
    toHide.Visible = false
end)
1 Like

for all of these 3 localscripts?

You could put 3 scripts, but you could also just put it all in 1 script, however, you would change script.Parent.Activated, since script.Parent can’t refer to 3 different buttons!

so what would i use in order for the script to be able to refer to these scripts?

This looks very confusing, however, one way you can do it with menus is have ur frame, have an exit button as a child of the frame and have a separate button to open it. To open/close a gui you just have to toggle whether Gui.Visible = true/false when the button is clicked. So have your open button and frame as a child of the screengui and then have your exit button as a child of the frame. I hope this helps. I recommend you check the developer hub for info on guis and stuff.

note: make sure the screengui is located in StarterGui

clicked on menu button frame, but again it didnt do anything

I think you aren’t referring to the button correctly. Could you provide a place file and also explain which button should open what? I’ll take a look.

startergui? and also everything except the menu button frame IS child of the menu frame.

sure, i will copy paste these menus into a baseplate, brb.

what does your script look like so far?

you could take a look there, okay now brb