janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 22 Oct 2013 02:15 PM |
How do I use an anonymous function to pass arguments to a named function? Like I have
guibutton.Clicked:connect(function(clickfunction(guibutton)) end)
but it doesn't work. I need it to say which guibutton was clicked |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2013 02:19 PM |
You call the named function inside the anonymous function. You were very close.
guibutton.Clicked:connect(function() clickfunction(guibutton) end) |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
| |
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 22 Oct 2013 03:41 PM |
I didn't even get to halp D:
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|