how to create a function lua code example
Example 1: lua function
--// Basic Function
function PrintingText()
print("My text here")
end
PrintingText()
Example 2: function return lua
function factorial(x)
if x == 1 then
return 1
end
return x * factorial(x-1)
end