Need help scripting GUI

Hello, I’m Gofe09 and I have very little knowledge of scripting.

Ive made this main menu and already scripted the play button but I need help scripting the info button.

What I want it to do is when you click the info button the main menu GUI disappears then the Info GUI appears, then when you click the back button the info GUI disappears then the main menu appears again. I need help on what script I should use for example a local script or a script and what to write in it.

Pictures:



Explorer:
Screenshot (12)

You would/could just make the visible propriety false on the one u wish to be hidden and then true on the ones u want to be seen.

Also this should be in #help-and-feedback:scripting-support

Use local-scripts

the thing u are trying to do doesn’t seem to be hard u can just use if statements and just change some properties

Insert this script inside Main Menu: (LocalScript)

local infoButton = script.Parent:WaitForChild("Info")
infoButton.MouseButton1Click:Connect(function()
	script.Parent.Enabled = false
	script.Parent.Parent:WaitForChild("Info GUI").Enabled = true
end)

Firstly, go to the Roblox Documentation Page to learn scripting, then if you want, try and make the play-gui a bit nicer.


This should be in #help-and-feedback:scripting-support but also, do not ask for the scripts without showing any errors / showing the script.

He does not have any scripts related to that info button