Lua Help: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Outofspace
(..Hello UniversalContraptionAngencyForTheDisabledBoxes...)
>Mr Doom Bringer
No edit summary
Line 1: Line 1:
{{User:Mindraker/Lua Tutorials}}
__NOTOC__
 
{{CatUp|Main Page}}
 
{|
|-
| valign="top" style="padding-right: 14px;" |
<div style="margin-left: 10%; margin-right: 10%;">
 
Lua is a versatile, interpreted programming language with a simple grammar. Because Lua can easily be embedded into applications, it is frequently used in games, such as World of Warcraft, Far Cry and Baldur's Gate.
 
Lua is used in Roblox by users to add in customized content, like cars that drive, new weapons, etc.
 
See the official [http://www.lua.org Lua website] and the [http://en.wikipedia.org/wiki/Lua_(programming_language) Wikipedia] article for more information.
 
==Fundamentals==
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00;"
|+ <!-- Comment -->
|-
|[[Image:LuaCode.png]] [[Flowcharts]]
|[[Image:LuaCode.png]] [[Your first script]]
|[[Image:LuaCode.png]] [[Loops]]
|-
|[[Image:LuaCode.png]] [[Variables]]
|[[Image:LuaCode.png]] [[Conditional statements]]
|[[Image:LuaCode.png]] [[Generic for]]
|-
|[[Image:LuaCode.png]] [[Basic math]]
|[[Image:LuaCode.png]] [[String]]
|[[Image:LuaCode.png]] [[Bool]]
|-
|}
 
<!-- Comment -->
 
==Flat Scripting==
 
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00;"
|+ <!-- Comment -->
|-
|[[Image:LuaCode.png]] [[Absolute beginner's guide to scripting]]
|[[Image:LuaCode.png]] [[How to make text on a brick]]
|[[Image:LuaCode.png]] [[How to add messages]]
|-
|[[Image:LuaCode.png]] [[Intro to Scripting: Make a Dance Floor]]
|[[Image:LuaCode.png]] [[Explaining Scripts]]
|[[Image:LuaCode.png]] [[Scripting]]
|-
|[[Image:LuaCode.png]] [[Functions]]
|[[Image:LuaCode.png]] [[Random numbers]]
|[[Image:LuaCode.png]] [[In-Depth Scripting Guide]]
|-
|}
 
 
== More advanced ==
 
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00;"
|+ <!-- Comment -->
|-
|[[Image:LuaCode.png]] [[Built-in functions]]
|[[Image:LuaCode.png]] [[Intro to Scripting: Make an Invisibility Tool]]
|[[Image:LuaCode.png]] [[Teleportation]]
|-
|[[Image:LuaCode.png]] [[How Do I Make Morphs?]]
|[[Image:LuaCode.png]] [[How to Make Conveyor Belts]]
|[[Image:LuaCode.png]] [[Tables]]
|-
|[[Image:LuaCode.png]] [[Color Reference]]
|[[Image:LuaCode.png]] [[How do I make VIP doors?]]
|[[Image:LuaCode.png]] [[How to Make Ramps]]
|-
|}
 
 
[[Category:Scripting Tutorials]]

Revision as of 20:18, 23 March 2010


Lua is a versatile, interpreted programming language with a simple grammar. Because Lua can easily be embedded into applications, it is frequently used in games, such as World of Warcraft, Far Cry and Baldur's Gate.

Lua is used in Roblox by users to add in customized content, like cars that drive, new weapons, etc.

See the official Lua website and the Wikipedia article for more information.

Fundamentals

Flowcharts Your first script Loops
Variables Conditional statements Generic for
Basic math String Bool


Flat Scripting

Absolute beginner's guide to scripting How to make text on a brick How to add messages
Intro to Scripting: Make a Dance Floor Explaining Scripts Scripting
Functions Random numbers In-Depth Scripting Guide


More advanced

Built-in functions Intro to Scripting: Make an Invisibility Tool Teleportation
How Do I Make Morphs? How to Make Conveyor Belts Tables
Color Reference How do I make VIP doors? How to Make Ramps