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: I never understood this

Previous Thread :: Next Thread 
genya10g is not online. genya10g
Joined: 03 Sep 2008
Total Posts: 1227
30 Aug 2013 07:25 PM
If I have a function that calls another, for instance it calls picknumber(), then inside of picknumber I put "return number", how do I access that returned number?
Report Abuse
josh50000 is not online. josh50000
Joined: 29 Nov 2009
Total Posts: 697
30 Aug 2013 07:34 PM
function picknumber()
return 50000
end

function otherfunction()
local number = picknumber() -- this variable will equal 50000
end

I'm guessing this is what you mean.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
30 Aug 2013 07:35 PM
If you want a wikipedia-fied version of return statements, see here: http://en.wikipedia.org/wiki/Return_statement
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
30 Aug 2013 07:35 PM
What do you mean exactly? Like a function in a function with a return?
Report Abuse
genya10g is not online. genya10g
Joined: 03 Sep 2008
Total Posts: 1227
30 Aug 2013 07:39 PM
Thank josh.
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