There are two types of functions: library functions and custom functions. Library functions are predefined functions that cannot be edited (like string.match or table.concat), and custom functions are function defined by the user. The parameter(s) of a custom function are the arguments, or what is inputted to the function.
function thisIsACustomFunction(parameterOne, parameterTwo)
print(parameterOne + parameterTwo)
end
You call your custom function by reciting its name followed by the arguments you want to replace your original parameters with.
thisIsACustomFunction(10, 5) -- prints fifteen to the output
{ Send me a private message if you have a broken script and I will help you out. } |