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
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.Code:function momsay(text)
Let's continue with this function, e.g. below
Well, the script will returnCode:function momsay(text) say('Mom said '..text) end momsay("Hie")
This image is hosted on a possibly dangerous website (http://puu.sh/5I1sM.png). Please consider reuploading it on Imgur.com.
This is a simple tutorial to do a simple function in LUA
Cya