|
| 27 Dec 2012 03:48 PM |
| Could smeone give me a brief explanation on this? My friend DoogleFox and me script together allot, and he usualy make his own functions and a paramater. Then he uses a return value in that function. What are the reasons for this. How can I do this. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2012 03:51 PM |
function add(a, b) return(a + b) end)
local addition = add(5, 10) print(addition) -> 15 |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2012 04:17 PM |
| Thats allot like C++! thankyou! |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2012 04:20 PM |
http://www.roblox.com/Forum/ShowPost.aspx?PostID=62145553
You can read that for a beginner-level explanation. :) |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2012 04:25 PM |
| Agent, you see when I was learning scripting, I skipped a couple of basic things I couldent understand. In hopes I would understand them later. So now it is very emberassing for me to go back and ask for help on these subjects. :/ |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2012 04:31 PM |
| I wouldn't call it embarrassing. You don't know what you don't know. The only way to learn is to ask. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2012 04:33 PM |
| Thats good to hear, from a scripter of your calliber. |
|
|
| Report Abuse |
|
|