generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Any way to break a function?

Previous Thread :: Next Thread 
FootBa11 is not online. 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 is not online. hachibey
Joined: 09 Jun 2007
Total Posts: 518
06 Jan 2014 11:32 AM
return
Report Abuse
redlo123 is not online. redlo123
Joined: 07 Feb 2013
Total Posts: 231
06 Jan 2014 11:33 AM
return end?
Report Abuse
FootBa11 is not online. 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 is not online. hachibey
Joined: 09 Jun 2007
Total Posts: 518
06 Jan 2014 11:36 AM
else
return
end
Report Abuse
redlo123 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image