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
lua function
--// Basic Function function PrintingText() print("My text here") end PrintingText()
lua function syntax
function name (parameters) --code end
Source: www.lua.org
Lua Function
local function hi() Your thing
how to make a function in lua?
-- You can do either local hello = "Hello World!" -- Or print("whatever you want to put in the output")