Search
 
SCRIPT & CODE EXAMPLE
 

LUA

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
Comment

What is lua used for

Lua is a powerful and fast programming language that is easy to 
learn and use and to embed into your application. 

Lua is designed to be a lightweight embeddable scripting language.
It is used for all sorts of applications, 
from games to web applications and image processing.

-- 

Used commonly in Roblox, Garry's Mod and Multi Theft Auto
Comment

lua function syntax

function name (parameters)
	--code
end
Comment

lua function

--// Basic Function

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

PrintingText()
Comment

Lua Function

local function hi()
           Your thing
Comment

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")
Comment

PREVIOUS NEXT
Code Example
Lua :: how to make scroll frame auto scroll roblox 
Lua :: Lua How to check what index belongs to value 
Lua :: how to end if statement roblox 
Lua :: roblox player chatter event 
Lua :: roblox lua get game place id 
Lua :: finding humanoid roblox. part 
Lua :: lua split 
Lua :: run a function in lua 
Lua :: lua how to make a click button 
Lua :: lua patterns 
Lua :: exemple boolean and why it is used 
Lua :: roblox manually stop command bar loops 
Lua :: name is not a valid member of Folder roblox 
Matlab :: matlab inverse z transform 
Matlab :: count even and odd numbers in matlab 
Matlab :: octave clear figure 
Matlab :: how to decrypt a code in mat 
Basic :: visual basic how to create a dynamic button 
Basic :: como colocar aspas duplas em vbnet 
Elixir :: elixir get_in 
Elixir :: how to split a string in elixir 
Scala :: scala match default 
Scala :: how to get absolute value in scala 
Actionscript :: Create menu group in Maximo 
Excel :: or in excel 
Perl :: unique in perl 
Pascal :: delay() in Pascal 
Powershell :: powershell get my documents folder 
Clojure :: folding at home linuxserver.io 
Assembly :: havong space between lines of richtext in flutter 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =