|
| 20 Oct 2011 12:29 PM |
Hello. I am coding a tool. One of code functions needs mouse and key pressed at same time. The function name and parametrs are KP(m, k). But i cant put connection lines. My try:
function TE(m) m.Button1Down:connect(function() LC(m) end) (((248 line here))) m.KeyDown:connect(KP(m, key) end) end
TE - tool equipped GetRightClick(m) - custom function
Error - Players.GuessWhoGhostIsIt.Backpack.Tool.LocalScript:250: ')' expected (to close '(' at line 248) near 'end'
Where did i make error and how can i fix it? |
|
|
| Report Abuse |
|
|
cool12309
|
  |
| Joined: 21 Sep 2008 |
| Total Posts: 1442 |
|
|
| 20 Oct 2011 12:34 PM |
| Most of the time, you have to trace the functions back. Line 248 might be fine, but function KP might have an error. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2011 12:37 PM |
Found error(s). In case if anyone was interested:
1)For this one, end is not needed at line 249 2)But also, i needed to define function of getting key(and end at line 249 was for the needed function, i just cutted it out and did not notice it) |
|
|
| Report Abuse |
|
|