Would mouseclick work with GUI's?
Example:
1 | script.Parent.MouseClick:connect(onMouseClick) |
If not what function do I use for click detectors on GUI's
Sorry I haven't really ever scripted gui's.
You were almost there, just take out the "onMouseClick"
1 | script.Parent.MouseButton 1 Click:connect( function ) |
@RRCT
I doesn't matter if you take out the onMouseClick or not, just make sure to define the function onMouseClick or use :connect(function()) end)