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

How do I make it so when you press a button on the GUI, it morphs you?

Asked by 9 years ago

I am making a game, I need to know how to do that.

2 answers

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
9 years ago

TextButtons and ImageButtons have the MouseButton1Down event which fires when they are clicked. You can have your other code run from that event:

Button.MouseButton1Down:connect(function()


end)
Ad
Log in to vote
-2
Answered by 9 years ago

sure. (put this script in the button for it to work)

script.Parent.MouseButton1Down:connect(function()
    -- Put code here
end)

Answer this question