lua functions
snippet in lua

lua functions

user7695

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

user2885

--// Basic Function

function PrintingText()
print("My text here")
end

PrintingText()

Function script in lua

user6010

local function GoodFunction() --Replace GoodFunction Wiht Your Function Name
	--Your Script Here
end

GoodFunction() --Replace GoodFunction Wiht Your Function Name

lua parameters function

user4035

--// LUA basic function parameter

function BasicParameter(text)
print(text)
end

BasicParameter("My Text Here")