Lua Help: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
(Reverted edit by Zuka. Changed back to last version by MrDoomBringer. Add the link AFTER you've made the article.)
>Outofspace
(..Hello UniversalContraptionAngencyForTheDisabledBoxes...)
Line 1: Line 1:
__NOTOC__
{{User:Mindraker/Lua Tutorials}}
 
{{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.
 
 
==Basic Lua==
{| width=100%
|
{| cellspacing=5 cellpadding=5 border=0 width=100% style="background-color: #fdd; border: 2px dashed #f00;"
 
|width=48|{{CatImage || image=LuaIco2.png | link=Scripting | width=48px | height=48px }}
|'''[[Scripting|Basic Lua]]'''<br><small>A simple description of Lua, and how to use it.
 
|width=48|{{CatImage || image=LuaIco2.png | link=In-Depth | width=48px | height=48px }}
|'''[[In-Depth Scripting Guide]]'''<br><small>A Very detailed guide to scripting.
 
|width=48|{{CatImage || image=LuaCode.png | link=Code Snippits | width=48px | height=48px }}
|'''[[Code Snippets]]'''<br><small>Small bits of code that you can use in a larger script, or learn from.
 
|}
 
==Advanced Lua==
{| width=100%
|
{| cellspacing=5 cellpadding=5 border=0 width=100% style="background-color: #fdd; border: 2px dashed #f00;"
 
|width=48|{{CatImage || image=LuaCode.png | link=Function Dump | width=48px | height=48px }}
|'''[[Conceptual Design: How and why things work in Roblox]]'''<br><small>Theories and explanations into things in Roblox.
|}
 
==Function/Class reference==
{| width=100%
|
{| cellspacing=5 cellpadding=5 border=0 width=100% style="background-color: #fdd; border: 2px dashed #f00;"
 
|width=48|{{CatImage || image=LuaCode.png | link=Function Dump | width=48px | height=48px }}
|'''[[Function Dump]]'''<br><small>Most of the functions currently available in Roblox Lua.
 
|width=48|{{CatImage || image=LuaCode.png | link=Class reference | width=48px | height=48px }}
|'''[[Class reference]]'''<br><small>The main classes in Roblox Lua
|}
 
 
==Feedback==
{| width=100%
|
{| cellspacing=5 cellpadding=5 border=0 width=100% style="background-color: #fdd; border: 2px dashed #f00;"
 
|width=48|{{CatImage || image=bug.png | link=Bug Reporting |width=48px |height=48px }}
|'''[[Bugs|Bug Reporting]]'''<br><small>Report any MAJOR bugs/errors you have encountered here
 
|width=48|{{CatImage || image=LuaIdea.png | link=Request Lua Feature |width=48px |height=48px }}
|'''[[Request Lua Feature|Request A Feature]]'''<br><small>Place your requests for new additions/binds in here. Please be realistic and not demanding.

Revision as of 06:11, 2 November 2008


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