lua call a function code example
Example 1: lua function
--// Basic Function
function PrintingText()
print("My text here")
end
PrintingText()
Example 2: 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