How to make Menu?

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)

wait, do i give team create to you in that baseplate?

actually yeah might aswell just do that

are any errors popping up in the output?

No, you can download the place. Also, I think you can’t give edit permissions to someone unless they are your friend or in a group with edit permissions. The problem in the script is that your variables are nil. You need to change those so they refer to your buttons.

no errors popping up in the output

either you could try adding me and script the menu issue, or u could go in the game (Menu Test) and see

https://www.roblox.com/games/6851357935/Menu-Test

yes i copy pasted the menu stuff there

You need to reference the frames in the script, if you leave it at nil its not gonna do anything…

so would i have to repeatedly do game.StarterGui.Menu.MenuButtonFrame or something

Not repeatedly but yes you would need to reference them some way like that.

but where would i reference them (in which lines)

i meant in which line would i do that

in line 1 and 2 or where would i have to refer them

The errors I’m getting in the console can confirm this. You need to reference them in the first 2 lines. As I explained previously, just change nil

local toShow = nil -- This should not say "nil"
local toHide = nil -- Same here!

so like this?

local toShow = game.StarterGui.Menu.MenuButtonFrame.TextButton.ButtonScript – Frame to show
local toHide = game.StarterGui.Menu.MenuButtonFrame.TextButton.ButtonScript – Frame to hide

in the part where you make a variable for them… so like

local menuframe = parent.child.child --something like this

Yes, that’s very good, but instead of saying game.StarterGui.Menu.MenuButtonFrame.TextButton, you have to start with script, meaning it would look something like script.Parent.ExampleButton. When you write .Parent, you just go up the hierarchy.

so like this?

local toShow = script.Parent.Activated – Frame to show

idk im trying