User:ScripterHelper

Lua Help Current revision (unreviewed) Up one category: Main Page

Roblox Lua Making your maps do crazy things Lua (not "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. Introduction series - read these first! Script Creation Walkthrough How to create and run scripts. Flowcharts Using diagrams to show the "flow" of a script. Basic math How to work with numbers in a script. Strings How to work with text in a script. Booleans How to work with yes/no values in a script. Variables Conditional statements How to make scripts do different things in different situations. Loops How to make a piece of code run multple times. Functions Tables Storing multiple objects in one. Generic for A special kind of loop for tables. Other Guides Beginner's Guide to Scripting If you've never worked with scripting before, look here. Basic Scripting Shows you some of the basics of scripting. How to Script Anything What it says. In-Depth Scripting Guide Programming In Lua Guide to Lua by its creators. (partly out of date) Introductions to Concepts What are GUIs? This very in-depth guide explains what GUIs are. Intro to Weapons An intro into the scripting of Weapons in Roblox. ROBLOX Scripting How To: Data Persistence Data Persistence Tutorial A tutorial on understanding and using data persistence in your places. Using Vector3 Values Shows how to use math with Vector3s. Using Leaderboards How to create your own Leaderboards. Random numbers How to stop the same thing happening each time. How To Make Plugins How can you make your own Roblox Studio toolbars and buttons? Reference Scripting Functions A list of all the global (don't need an object) functions. Class Reference All the types of Roblox Instances. Built-in functions Functions available in every Instance. Lua Reference Manual Official documentation of Lua. (some features not available in Roblox) Example Scripts Cookbook Large list of small example scripts Creating a Brick Basic 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 Potion The Intro to Scripting series, how to Heal or Damage a Humanoid. Make a Dance Floor How to change the color of a brick, and create simple loops. Make an Invisibility Tool Shows how to create Tools and turn yourself invisible. How to create VIP Doors Shows how to use tables, and to create a door that only certain people can enter. How to make Rain Creating drops falling from the sky in random locations. One-way Doors How to create doors that go only one direction. Making Glow Scripts Making objects glow, with more complex loops. How to Teleport An overview of teleportation of players. Making an OnClicked Script Shows how to use the Mouse to trigger weapons. How to make Regenerateable Models Shows how to use variables to remove and create new models, even if they've been destroyed. Using Sounds Shows how to use events and work with Sounds. How to add Messages to your Place Shows how to use scripts to work with the Message object. Using BodyPosition Details how to use the BodyPosition object. How to build a Catapult A guide for medieval mayhem. Using PlayerAdded How to use the PlayerAdded event. How to create talking commands A guide on how to use the Chatted event. How to make an Elevator How to make bricks move up and down in time. How to make Morphs Creating Morphs for your players. How to make Multi-Handle tools Creating tools with more than one brick for a handle. Money and Shop Scripts How to create an economy for your place. Creating Black Holes Shows how to simulate gravity fields in lots of objects. How to make text on a brick How to make words appear above a brick. Teleportation How to move characters to different positions. How to Make Weapon Giving Teleporters Moving characters and giving them weapons. How to Make Conveyor Belts Parts that move other parts. How to Make Ramps Using CFrame to rotate parts. How to Make Lava Parts that hurt characters when touched. How to make circles Using CFrame to arrange parts in a circle.