Lua Help: Difference between revisions
>MrNicNac Rejected the last text change (by SoulStealer9875) - Rephrase it so it doesn't credit the author in the link/description. |
Link the DHTML page here! |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>__NOTOC__ {{clear floats}}</noinclude> | <noinclude>__NOTOC__ {{clear floats}}</noinclude> | ||
{{TitledBox/start|heading=<noinclude>{{CatUp|Main Page}}</noinclude>{{CatItem|luaCode.png|Lua Help|Roblox Lua|Making your maps do crazy things}}}} | {{TitledBox/start|heading=<noinclude>{{CatUp|Main Page}}</noinclude>{{CatItem|luaCode.png|Lua Help|Roblox Lua|Making your maps do crazy things}}}} | ||
[http://www.lua.org Lua] ([http://www.lua.org/about.html#name '''not''' "LUA"]) is a simple programming language that is used in Roblox to add in customized content, like cars that drive, | [http://www.lua.org Lua] ([http://www.lua.org/about.html#name '''not''' "LUA"]) is a simple programming language that is used in Roblox to add in customized content, like cars that drive, weapons, planes, random terrain, and whole games, and much more! | ||
This <noinclude>page</noinclude><includeonly>section</includeonly> provides tutorials to help users to learn Lua. | This <noinclude>page</noinclude><includeonly>section</includeonly> provides tutorials to help users to learn Lua. | ||
Line 7: | Line 7: | ||
There are often multiple tutorials on the same subject, so if you don't understand something in one of them, try another! | 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 | If you still don't understand something, you can ask in [https://discord.gg/CHFK7eXXMY the Roblox Client Search Discord server] or [https://discord.gg/Jfrdmx3ZwQ the Novetus launcher Discord server]. Note that you're more likely to get an answer if you ask a specific question, and that if you have a problem with a piece of code, posting the code (using [https://www.wikihow.com/Format-Text-as-Code-in-Discord multi-line formatting]) really helps people to find what the problem is. Messages just asking "How do I script?" or "Make me this" are usually ignored. | ||
{{TitledBox/subheading|Introduction series - read these first!}} | {{TitledBox/subheading|Introduction series - read these first!}} | ||
Line 30: | Line 30: | ||
{{TitledBox/subheading|Introductions to Concepts}} | {{TitledBox/subheading|Introductions to Concepts}} | ||
{{CatList|DHTML|Using DHTML|Example of DHTML, a 2007 feature letting you display webpages during gameplay (before GUI was added in 2009).}} | |||
{{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 52: | Line 53: | ||
{{CatList|How do I create a brick?|Creating a Brick|Basic tutorial on creating a brick using a script.}} | {{CatList|How do I create a brick?|Creating a Brick|Basic tutorial on creating a brick using a script.}} | ||
{{CatList|Debounce|IS:What is Debounce?|Explains what a debounce is, and what it's used for.}} | {{CatList|Debounce|IS:What is Debounce?|Explains what a debounce is, and what it's used for.}} | ||
{{CatList|Restricted Doors|Creating Restricted Doors|Shows how to create a door that only certain people can enter.}} | {{CatList|Restricted Doors|Creating Restricted Doors|Shows how 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|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| | {{CatList|Terrain_Generation|Terrain Generation|Generating non-random terrain mathematically.}} | ||
{{CatList| | {{CatList|Random_terrain|Random Terrain|Generating unique terrain randomly.}} | ||
{{TitledBox/end}} | {{TitledBox/end}} |
Latest revision as of 06:13, 30 October 2023
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, weapons, planes, random terrain, and whole games, and much more!
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 in the Roblox Client Search Discord server or the Novetus launcher Discord server. Note that you're more likely to get an answer if you ask a specific question, and that if you have a problem with a piece of code, posting the code (using multi-line formatting) really helps people to find what the problem is. Messages just asking "How do I script?" or "Make me this" are usually ignored.