|
Post by Spec on Jul 15, 2014 7:07:30 GMT -5
So there are a couple ways you can do this. The first one is, you can have multiple click functions. Here is a list of all of them: - MouseButton1Click
- MouseButton1Down
- MouseButton1Up
- MouseButton2Click
- MouseButton2Down
- MouseButton2Up
So those are the click functions. Now there are two ways you can set up the function table. You can either do: script.Parent.MouseButton1Click:connect(function()
end)
Or you can do: function MouseClick()
end
script.Parent.MouseButton1Click:connect(MouseClick) So now lets use those skills to make a little script. script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Donation.Visible = false
end) So there is how to make a simple Lua click script. If you want to learn more, you can: Send me a Tweet
|
|