|
| 29 Nov 2015 11:56 AM |
Is there anyway to connect functions for multiple buttons via a for loop?
Something like this line with in a loop... v.MouseEnter:connect(tweenSelect(v, false, "enter"))
But it keeps giving me an error: Attempt to connect failed: Passed value is not a function I think it may be because I cannot have arguments for the function in a connect line :/ Help? |
|
|
| Report Abuse |
|
|
litawolf
|
  |
| Joined: 26 Feb 2013 |
| Total Posts: 396 |
|
|
| 29 Nov 2015 12:00 PM |
huh
what are you trying to accomplish
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 12:00 PM |
v.MouseEnter:connect(function() tweenselect(v,false,"enter") end) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 12:02 PM |
^^^^^
The problem was you weren't passing in a function object, you were passing in a call to a function. |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 29 Nov 2015 12:20 PM |
| v.MouseEnter:connect(tweenSelect,v, false, "enter") |
|
|
| Report Abuse |
|
|