lua function declaration type code example
Example 1: lua functions
function myFunction() -- Start with 'function', give it a name
-- Do something amazing...
end -- Finish with 'end'
myFunction() -- Call the function later in the code
Example 2: Function script in lua
local function GoodFunction() --Replace GoodFunction Wiht Your Function Name
--Your Script Here
end
GoodFunction() --Replace GoodFunction Wiht Your Function Name