Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 9 years ago

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

Log in to vote
3
Answered by
Merely 2122 Moderation Voter Community Moderator
9 years ago

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.

Ad

Answer this question