FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 06 Jan 2014 11:32 AM |
Like, 'break' stops loops right?
Is there a similar method for stopping functions? |
|
|
| Report Abuse |
|
|
hachibey
|
  |
| Joined: 09 Jun 2007 |
| Total Posts: 518 |
|
| |
|
redlo123
|
  |
| Joined: 07 Feb 2013 |
| Total Posts: 231 |
|
| |
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 06 Jan 2014 11:35 AM |
orly?
so how would I use that to break the code below?
function fire(aim) if minigun == true then Tool.Handle.PowerUp:Play() wait(WarmUpTime) if down == true then wait() else BREAK THE FUNCTION CALLED fire(aim) end |
|
|
| Report Abuse |
|
|
hachibey
|
  |
| Joined: 09 Jun 2007 |
| Total Posts: 518 |
|
| |
|
redlo123
|
  |
| Joined: 07 Feb 2013 |
| Total Posts: 231 |
|
|
| 06 Jan 2014 11:37 AM |
| return is usually the last statement of a block |
|
|
| Report Abuse |
|
|