opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 19 Feb 2012 07:11 AM |
Is it possible to put a loop in a click function? If so could somebody show me. Thanks, |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2012 07:13 AM |
It really annoys me if people give functions a specific name. Functions can be named by the programmer, that doesn't mean they're called that. The function is just a block a block of code ran after an event got fired, therefore you say 'Clicked event', not '____ function'. And don't even say '___ script' that defines your skills pretty much to zero.
And yes, using loops in functions is possible. |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 19 Feb 2012 07:16 AM |
Thanks for insulting me, Could you give me a small example of a loop in a function then? |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 19 Feb 2012 07:18 AM |
| Actually i have made my own doesn't matter. |
|
|
| Report Abuse |
|
|
kools
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 1659 |
|
|
| 19 Feb 2012 07:25 AM |
function ThingyMaBobber() for i = 1, math.huge --code end end or function Hubuscus() while wait() do --code end end
ect. |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2012 07:28 AM |
'It really annoys me if people give functions a specific name. Functions can be named by the programmer, that doesn't mean they're called that. The function is just a block a block of code ran after an event got fired, therefore you say 'Clicked event', not '____ function'. And don't even say '___ script' that defines your skills pretty much to zero.'
can't agree with you more there. I rant on like you when people use terms like the onTouched function. >.< |
|
|
| Report Abuse |
|
|