Menu not working

no i have abasndoned this ok so i wont bother

here are the scripts:

local toShow = script.Parent.Parent.Parent.Parent.Menu – Frame to show
local toHide = script.Parent.Parent.Parent.Parent.Menu – Frame to hide

script.Parent.Activated:Connect(function()
toShow.Visible = true
toHide.Visible = false
end)

make a print() statement inside of script.Parent.Activated to make sure the button click actually does something

Screenshot 2021-05-23 011855

but what would i print in that statement?

Anything, it’s just to make sure that the print statement is actually activating.

Activated isnt a function on a button try

script.Parent.MouseButton1Click:Connect(function() --for PC

end)
--or
script.Parent.TouchTap:Connect(function() --for mobile

end)

another issue is, visible (line 6 and 7) isnt a valid member to the script apparently as error in the output

Show me the error please :grinning_face_with_smiling_eyes:

Visible is not a valid member of ScreenGui “Players.JToHisveryfun.PlayerGui.Menu” - Client - ButtonScript:6

Because you cant make a screen gui visible are all of these inside of one frame?

Like this
Frame: --they are all in this frame?
frame:
button:
script
frame:
etc.

no. they are all in a GUI called “Menu”

Ok send me the images of your whole entire screen gui I will see the problem

as in the previous screenshot at the beginning

go to the beginning, i already made a screenshot of the menu gui

Ok well then you need to do this:

local varname = script.Parent.Parent.Parent.MenuButtonFrame
local varname = script.Parent.Parent.Parent.MenuFrame

--rest code

You cant call visible on a screen gui only frames and labels

no. thats line 1 and 2. the error is on line 6 and 7

the script stops at 6 and needs to be fixed when u click the menubuttonframe