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

How do I script buttons of a GUI? [closed]

Asked by 10 years ago

How do I do buttons in a GUI? Like a Leave Button.

When the first time I try to script it failed. Like when I tried to do a "Leave Button" it wont do it. I cannot script. I can't read scripts. Some are to complex. The first attempt to do it was in my game "Explore." I'm can't really make GUIs because of dumb computer could not do it! So I tried. So can you help me? GUI buttons I can't really do, So I ask you help.

Not new or to old, TestingAndBuilding, non as "HALOplayer13"

Closed as Too Broad by MrFlimsy, Thewsomeguy, Shawnyg, and Articulating

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Wubblu 20
10 years ago
function Button()
--Code here. eg, game.Workspace.Player1:Destroy()
end

script.Parent.MouseButton1Down:connect(Button)

0
Thanks TestingAndBuilding 10 — 10y
Ad