How to create a simple function
Well guys, i'm here to quickly teach a simple lua script function...
First you need to give the function name, and check if the function will have a variable, look at the e.g. below
Code:
function momsay(text)
Well this function is not finished yet, but you see that i put MOMSAY, "momsay" is the function name that need to be called in script, then the "text" is a variable, that will appear in entire of function code.
Let's continue with this function, e.g. below
Code:
function momsay(text)
say('Mom said '..text)
end
momsay("Hie")
Well, the script will return
http://puu.sh/5I1sM.png
This is a simple tutorial to do a simple function in LUA
Cya