User:Sncplay42/Lua Help: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Sncplay42
Draft rewrite of Lua Help
 
>Blocco
I've made the headers stand out. Rollback if desired.
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!}}
{{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 18:
{{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.}}
Line 24: Line 24:
{{CatList|In-Depth Scripting Guide|In-Depth Scripting Guide|}}
{{CatList|In-Depth Scripting Guide|In-Depth Scripting Guide|}}


{{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 33:
{{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.}}
Line 39: Line 39:
{{CatList|Built-in functions|Built-in functions|Functions available in every [[Instance]].}}
{{CatList|Built-in functions|Built-in functions|Functions available in every [[Instance]].}}


{{TitledBox/subheading|Example Scripts}}
{{TitledBox/subheading|<b style{{=}}"font-size:1.25em;">Example Scripts</b>}}
{{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.}}

Revision as of 18:05, 9 July 2011

Roblox LuaRoblox Lua
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.

Introduction series - read these first!
Script Creation WalkthroughHow to create and run scripts.
FlowchartsUsing diagrams to show the "flow" of a script.
Basic mathHow to work with numbers in a script.
StringsHow to work with text in a script.
BooleansHow to work with yes/no values in a script.
Conditional statementsHow to make scripts do different things in different situations.
LoopsHow to make a piece of code run multple times.
TablesStoring multiple objects in one.
Generic forA special kind of loop for tables.
Other Guides
Beginner's Guide to ScriptingIf you've never worked with scripting before, look here.
Basic ScriptingShows you some of the basics of scripting.
Introductions to Concepts
What are GUIs?This very in-depth guide explains what GUIs are.
Intro to WeaponsAn intro into the scripting of Weapons in Roblox.
Data Persistence TutorialA tutorial on understanding and using data persistence in your places.
Using Vector3 ValuesShows how to use math with Vector3s.
Using LeaderboardsHow to create your own Leaderboards.
Random numbersHow to stop the same thing happening each time.
Reference
FunctionsA list of all the global (don't need an object) functions.
Class ReferenceAll the types of Roblox Instances.
Built-in functionsFunctions available in every Instance.
Example Scripts
Creating a BrickBasic tutorial on how to create a brick using a script.
IS:What is Debounce?Explains what Debounce is, and what it's used for.
Making a Healing PotionThe Intro to Scripting series, how to Heal or Damage a Humanoid.
Make a Dance FloorHow to change the color of a brick, and create simple loops.
Make an Invisibility ToolShows how to create Tools and turn yourself invisible.
How to create VIP DoorsShows how to use tables, and to create a door that only certain people can enter.
How to make RainCreating drops falling from the sky in random locations.
One-way DoorsHow to create doors that go only one direction.
Making Glow ScriptsMaking objects glow, with more complex loops.
How to TeleportAn overview of teleportation of players.
Making an OnClicked ScriptShows how to use the Mouse to trigger weapons.
How to make Regenerateable ModelsShows how to use variables to remove and create new models, even if they've been destroyed.
Using SoundsShows how to use events and work with Sounds.
How to add Messages to your PlaceShows how to use scripts to work with the Message object.
Using BodyPositionDetails how to use the BodyPosition object.
How to build a CatapultA guide for medieval mayhem.
Using PlayerAddedHow to use the PlayerAdded event.
How to create talking commandsA guide on how to use the Chatted event.
How to make an ElevatorHow to make bricks move up and down in time.
How to make MorphsCreating Morphs for your players.
How to make Multi-Handle toolsCreating tools with more than one brick for a handle.
Money and Shop ScriptsHow to create an economy for your place.
Creating Black HolesShows how to simulate gravity fields in lots of objects.
How to make text on a brickHow to make words appear above a brick.
TeleportationHow to move characters to different positions.
How to Make Weapon Giving TeleportersMoving characters and giving them weapons.
How to Make Conveyor BeltsParts that move other parts.
How to Make RampsUsing CFrame to rotate parts.
How to Make LavaParts that hurt characters when touched.
How to make circlesUsing CFrame to arrange parts in a circle.
How to make a spiral staircaseUsing CFrame to arrange parts in a spiral.