User:Sncplay42/Lua Help: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Sncplay42 Draft rewrite of Lua Help |
>JulienDethurens Removed links to deleted pages. |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
This page provides tutorials to help users to learn Lua. | This page provides tutorials to help users to learn Lua. | ||
{{TitledBox/subheading|Introduction series - read these first!}} | There are often multiple tutorials on the same subject, so if you don't understand something in one of them, try another! | ||
If you still don't understand something, you can ask at [http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20 Scripting Helpers]. Note that you're more likely to get an answer if you ask a specific question than something general, and that if you have a problem with a piece of code, posting the code really helps people to find what the problem is. Posts just asking "How do I script?" or "Make me this" are usually ignored. | |||
{{TitledBox/subheading|<b style{{=}}"font-size:1.25em;">Introduction series - read these first!</b>}} | |||
{{CatList|Script Creation Walkthrough|Script Creation Walkthrough|How to create and run scripts.}} | {{CatList|Script Creation Walkthrough|Script Creation Walkthrough|How to create and run scripts.}} | ||
{{CatList|Flowcharts|Flowcharts|Using diagrams to show the "flow" of a script.}} | {{CatList|Flowcharts|Flowcharts|Using diagrams to show the "flow" of a script.}} | ||
Line 18: | Line 22: | ||
{{CatList|Generic for|Generic for|A special kind of loop for tables.}} | {{CatList|Generic for|Generic for|A special kind of loop for tables.}} | ||
{{TitledBox/subheading|Other Guides}} | {{TitledBox/subheading|<b style{{=}}"font-size:1.25em;">Other Guides</b>}} | ||
{{CatList|Absolute beginner's guide to scripting|Beginner's Guide to Scripting|If you've never worked with scripting before, look here.}} | {{CatList|Absolute beginner's guide to scripting|Beginner's Guide to Scripting|If you've never worked with scripting before, look here.}} | ||
{{CatList|Basic Scripting|Basic Scripting|Shows you some of the basics of scripting.}} | {{CatList|Basic Scripting|Basic Scripting|Shows you some of the basics of scripting.}} | ||
{{CatList|How to Script Anything|How to Script Anything|What it says.}} | {{CatList|How to Script Anything|How to Script Anything|What it says.}} | ||
{{CatList|In-Depth Scripting Guide|In-Depth Scripting Guide|}} | {{CatList|In-Depth Scripting Guide|In-Depth Scripting Guide|}} | ||
{{CatListUrl|http://www.lua.org/pil|Programming In Lua|Guide to Lua by its creators. (partly out of date)}} | |||
{{TitledBox/subheading|Introductions to Concepts}} | {{TitledBox/subheading|<b style{{=}}"font-size:1.25em;">Introductions to Concepts</b>}} | ||
{{CatList|Beginner's GUI Tutorial|What are GUIs?|This very in-depth guide explains what GUIs are.}} | {{CatList|Beginner's GUI Tutorial|What are GUIs?|This very in-depth guide explains what GUIs are.}} | ||
{{CatList|Introduction to Weapons|Intro to Weapons|An intro into the scripting of Weapons in Roblox.}} | {{CatList|Introduction to Weapons|Intro to Weapons|An intro into the scripting of Weapons in Roblox.}} | ||
Line 33: | Line 38: | ||
{{CatList|Random numbers|Random numbers|How to stop the same thing happening each time.}} | {{CatList|Random numbers|Random numbers|How to stop the same thing happening each time.}} | ||
{{TitledBox/subheading|Reference}} | {{TitledBox/subheading|<b style{{=}}"font-size:1.25em;">Reference</b>}} | ||
{{CatList|Scripting|Scripting|}} | {{CatList|Scripting|Scripting|}} | ||
{{CatList|Function Dump|Functions|A list of all the global (don't need an object) functions.}} | {{CatList|Function Dump|Functions|A list of all the global (don't need an object) functions.}} | ||
{{CatList|Class Reference|Class Reference|All the types of Roblox [[Instance]]s.}} | {{CatList|Class Reference|Class Reference|All the types of Roblox [[Instance]]s.}} | ||
{{CatList|Built-in functions|Built-in functions|Functions available in every [[Instance]].}} | {{CatList|Built-in functions|Built-in functions|Functions available in every [[Instance]].}} | ||
{{CatListUrl|http://www.lua.org/manual/5.1|Lua Reference Manual|Official documentation of Lua. (some features not available in Roblox)}} | |||
{{TitledBox/subheading|Example Scripts}} | {{TitledBox/subheading|<b style{{=}}"font-size:1.25em;">Example Scripts</b>}} | ||
{{CatList|Cookbook|Cookbook|Large list of small example scripts}} | |||
{{CatList|How do I create a brick?|Creating a Brick|Basic tutorial on how to create a brick using a script.}} | {{CatList|How do I create a brick?|Creating a Brick|Basic tutorial on how to create a brick using a script.}} | ||
{{CatList|Debounce|IS:What is Debounce?|Explains what Debounce is, and what it's used for.}} | {{CatList|Debounce|IS:What is Debounce?|Explains what Debounce is, and what it's used for.}} | ||
{{CatList|How do I make VIP doors?|How to create VIP Doors|Shows how to use tables, and to create a door that only certain people can enter.}} | {{CatList|How do I make VIP doors?|How to create VIP Doors|Shows how to use tables, and to create a door that only certain people can enter.}} | ||
{{CatList|One Way Shields|One-way Doors|How to create doors that go only one direction.}} | {{CatList|One Way Shields|One-way Doors|How to create doors that go only one direction.}} | ||
{{CatList|Teleportation|How to Teleport|An overview of teleportation of players.}} | {{CatList|Teleportation|How to Teleport|An overview of teleportation of players.}} | ||
{{CatList|Making an onClicked script|Making an OnClicked Script|Shows how to use the Mouse to trigger weapons.}} | {{CatList|Making an onClicked script|Making an OnClicked Script|Shows how to use the Mouse to trigger weapons.}} | ||
{{CatList|Sounds|Using Sounds|Shows how to use events and work with Sounds.}} | {{CatList|Sounds|Using Sounds|Shows how to use events and work with Sounds.}} | ||
{{CatList|How to add messages|How to add Messages to your Place|Shows how to use scripts to work with the [[RBX.lua.Message (Object)|Message]] object.}} | {{CatList|How to add messages|How to add Messages to your Place|Shows how to use scripts to work with the [[RBX.lua.Message (Object)|Message]] object.}} | ||
{{CatList|How To Use BodyPosition|Using BodyPosition|Details how to use the [[RBX.lua.BodyPosition (Object)|BodyPosition]] object.}} | {{CatList|How To Use BodyPosition|Using BodyPosition|Details how to use the [[RBX.lua.BodyPosition (Object)|BodyPosition]] object.}} | ||
{{CatList|PlayerAdded|Using PlayerAdded|How to use the [[PlayerAdded (Event)|PlayerAdded]] event.}} | {{CatList|PlayerAdded|Using PlayerAdded|How to use the [[PlayerAdded (Event)|PlayerAdded]] event.}} | ||
{{CatList|Using the Chatted Event|How to create talking commands|A guide on how to use the Chatted event.}} | {{CatList|Using the Chatted Event|How to create talking commands|A guide on how to use the Chatted event.}} | ||
{{CatList|How To Make Multi Handles|How to make Multi-Handle tools|Creating tools with more than one brick for a handle.}} | {{CatList|How To Make Multi Handles|How to make Multi-Handle tools|Creating tools with more than one brick for a handle.}} | ||
{{CatList|How to make text on a brick|How to make text on a brick|How to make words appear above a brick.}} | {{CatList|How to make text on a brick|How to make text on a brick|How to make words appear above a brick.}} | ||
{{CatList|Teleportation|Teleportation|How to move characters to different positions.}} | {{CatList|Teleportation|Teleportation|How to move characters to different positions.}} | ||
{{CatList|How to Make Conveyor Belts|How to Make Conveyor Belts|Parts that move other parts.}} | {{CatList|How to Make Conveyor Belts|How to Make Conveyor Belts|Parts that move other parts.}} | ||
{{CatList|How to Make Ramps|How to Make Ramps|Using [[CFrame]] to rotate parts.}} | {{CatList|How to Make Ramps|How to Make Ramps|Using [[CFrame]] to rotate parts.}} | ||
{{CatList|How to make circles|How to make circles|Using [[CFrame]] to arrange parts in a circle.}} | {{CatList|How to make circles|How to make circles|Using [[CFrame]] to arrange parts in a circle.}} | ||
{{TitledBox/end}} | {{TitledBox/end}} |
Latest revision as of 01:33, 6 May 2012

Making your maps do crazy things
Lua is a simple programming language that is used in Roblox to add in customized content, like cars that drive, new weapons, etc.
This page provides tutorials to help users to learn Lua.
There are often multiple tutorials on the same subject, so if you don't understand something in one of them, try another!
If you still don't understand something, you can ask at Scripting Helpers. Note that you're more likely to get an answer if you ask a specific question than something general, and that if you have a problem with a piece of code, posting the code really helps people to find what the problem is. Posts just asking "How do I script?" or "Make me this" are usually ignored.