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

Can a Gui Frame in ROBLOX act as a button if scripted?

There is a RBX. rounded gui style on Frames and that is what I want. It is not available on TextButtons itself so if I use a frame as a button, would it work?

1 answer

It's possible, but not easy, since Frames don't have a MouseButton1Click event like ImageButtons/TextButtons do.

The cleanest way to do it is to create an invisible TextButton on top of the Frame, so you can hook up to the click event.

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