So, I was thinking of designing a Role Play Game but I want to know how to script a menu before I really get started on it. I would need a start button, options, tutorial, and lore. All I need is a basic menu. I just need to know how to add buttons and when I click them open a text page or open a secondary menu. Thank you for any help :)
~ Snowy99
P.S. Im not sure if this is even possible. But any advice would be welcome
To create a script that changes the visibility of the Frames, etc., use this:
To make the GUI (Frame, etc.) visible:
1 | function onButtonClicked() |
2 | script.Parent.Parent.PLACENAMEOFGUI.Visible = true --edit this line |
3 | end |
4 |
5 | script.Parent.MouseButton 1 Click:connect(onButtonClicked) |
To make the GUI (Frame, etc.,) not visible:
1 | function onButtonClicked() |
2 | script.Parent.Parent.PLACENAMEOFGUI.Visible = false --edit this line |
3 | end |
4 |
5 | script.Parent.MouseButton 1 Click:connect(onButtonClicked) |
This is NOT a request site. Please include any coding or research you have already done.
This is most commonly done with the MouseButton1Click
event of TextButtons
and ImageButtons
. When the GUI is clicked, it makes that GUI invisible, and another GUI visible. That's how you can make a 'secondary menu' appear. Now, please attempt the code and come back if you have problems.