Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a clickable GUI?

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!

3 comments

0

Use a TextButton.

0

Also, make sure to use either of the events that it uses: simply doing 'Button.Clicked' wont work. ;-;

0

Why are people downvoting this? It's a fairly simple question.

1 answer

Put a TextButton in the GUI you want there to be a clickable button on. Then, put this script inside it:

script.Parent.MouseButton1Click:connect(function()
-- Code that activates when you click the button
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.

This discussion is preserved as it was. New answers, comments, and votes are closed.