Lua Help: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Ben
>NXTBoy
That looks considerably better
Line 2: Line 2:


{{CatUp|Main Page}}
{{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 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.
Line 15: Line 10:


==Fundamentals==
==Fundamentals==
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00;"
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00; table-layout: fixed"
|+ <!-- Comment -->
|-
|[[Image:LuaCode.png]] [[Flowcharts]]
|[[Image:LuaCode.png]] [[Your first script]]
|[[Image:LuaCode.png]] [[Loops]]
|-
|-
|[[Image:LuaCode.png]] [[Variables]]
| {{CatItem|LuaCode.png|Flowcharts}}
|[[Image:LuaCode.png]] [[Conditional statements]]
| {{CatItem|LuaCode.png|Your first script}}
|[[Image:LuaCode.png]] [[Generic for]]
| {{CatItem|LuaCode.png|Loops}}
|-
|-
|[[Image:LuaCode.png]] [[Basic math]]
| {{CatItem|LuaCode.png|Variables}}
|[[Image:LuaCode.png]] [[String]]
| {{CatItem|LuaCode.png|Conditional statements}}
|[[Image:LuaCode.png]] [[Bool]]
| {{CatItem|LuaCode.png|Generic for}}
|-
|-
| {{CatItem|LuaCode.png|Basic math}}
| {{CatItem|LuaCode.png|String}}
| {{CatItem|LuaCode.png|Bool}}
|}
|}
<!-- Comment -->


==Flat Scripting==
==Flat Scripting==


{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00;"
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00; table-layout: fixed"
|+ <!-- Comment -->
|-
|-
|[[Image:LuaCode.png]] [[Absolute beginner's guide to scripting]]
| {{CatItem|LuaCode.png|Absolute beginner's guide to scripting}}
|[[Image:LuaCode.png]] [[How to make text on a brick]]
| {{CatItem|LuaCode.png|How to make text on a brick}}
|[[Image:LuaCode.png]] [[How to add messages]]
| {{CatItem|LuaCode.png|How to add messages}}
|-
|-
|[[Image:LuaCode.png]] [[Intro to Scripting: Make a Dance Floor]]
| {{CatItem|LuaCode.png|Intro to Scripting: Make a Dance Floor}}
|[[Image:LuaCode.png]] [[Explaining Scripts]]
| {{CatItem|LuaCode.png|Explaining Scripts}}
|[[Image:LuaCode.png]] [[Scripting]]
| {{CatItem|LuaCode.png|Scripting}}
|-
|[[Image:LuaCode.png]] [[Functions]]
|[[Image:LuaCode.png]] [[Random numbers]]
|[[Image:LuaCode.png]] [[In-Depth Scripting Guide]]
|-
|-
| {{CatItem|LuaCode.png|Functions}}
| {{CatItem|LuaCode.png|Random numbers}}
| {{CatItem|LuaCode.png|In-Depth Scripting Guide}}
|}
|}


Line 56: Line 45:
== More advanced ==
== More advanced ==


{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00;"
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 2px dashed #f00; table-layout: fixed"
|+ <!-- Comment -->
|-
|-
|[[Image:LuaCode.png]] [[Built-in functions]]
| {{CatItem|LuaCode.png|Built-in functions}}
|[[Image:LuaCode.png]] [[Intro to Scripting: Make an Invisibility Tool]]
| {{CatItem|LuaCode.png|Intro to Scripting: Make an Invisibility Tool}}
|[[Image:LuaCode.png]] [[Teleportation]]
| {{CatItem|LuaCode.png|Teleportation]]
|-
|-
|[[Image:LuaCode.png]] [[How Do I Make Morphs?]]
| {{CatItem|LuaCode.png|How Do I Make Morphs?}}
|[[Image:LuaCode.png]] [[How to Make Conveyor Belts]]
| {{CatItem|LuaCode.png|How to Make Conveyor Belts}}
|[[Image:LuaCode.png]] [[Tables]]
| {{CatItem|LuaCode.png|Tables}}
|-
|-
|[[Image:LuaCode.png]] [[BrickColor Codes]]
| {{CatItem|LuaCode.png|BrickColor Codes}}
|[[Image:LuaCode.png]] [[How do I make VIP doors?]]
| {{CatItem|LuaCode.png|How do I make VIP doors?}}
|[[Image:LuaCode.png]] [[How to Make Ramps]]
| {{CatItem|LuaCode.png|How to Make Ramps}}
|-
|-
|[[Image:LuaCode.png]] [[ROBLOX Scripting How To: Data Persistence]]
| {{CatItem|LuaCode.png|ROBLOX Scripting How To: Data Persistence}}
|}
|}


[[Category:Scripting Tutorials]]
[[Category:Scripting Tutorials]]

Revision as of 08:27, 29 May 2011


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

Flat Scripting


More advanced

LuaCode.png|Teleportation]]