Can someone tell me how to make a clickable GUI for my game?Please, just someone! If you want to help me build I have placed a Team Create in my game! Thank you!
Put a TextButton in the GUI you want there to be a clickable button on. Then, put this script inside it:
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 | -- Code that activates when you click the button |
3 | end ) |
Calling MouseButton1Click detects when the user clicks the button, then runs a code. In this case, it is calling script.Parent which is the TextButton.