Lua Help: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
No edit summary
Link the DHTML page here!
 
(132 intermediate revisions by 26 users not shown)
Line 1: Line 1:
[http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$133 ultram online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=321 free cool ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832219) but lorazepam] [http://www.csun.edu/learningnet/discussion/file.php?0,file=154 free cingular ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031aa.htm generic valium] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1122 free real ringtones] [http://acolosit.jubiiblog.de/ qwest ringtones] [http://trocviboc.blogdiario.com/ alprazolam online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=114 carisoprodol online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832212) free funny ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832214) buy hydrocodone] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=305&FORUM_ID=3&CAT_ID=3 valium online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1111 buy hgh] [http://getcopas.blogdiario.com/ cheap ultracet] [http://www.csun.edu/learningnet/discussion/file.php?0,file=140 nokia ringtones] [http://eudrayv.blogspot.com picture pill valium] [http://www.forumhosting.org/forum.php?mforum=varbocget lorazepam] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=357 sony ringtones] [http://bascoor.blogdiario.com/ cheap nexium] [http://www.csun.edu/learningnet/discussion/file.php?0,file=153 free polyphonic ringtones] [http://eldronno.jubiiblog.de/ zoloft online] [http://domlili.blogdiario.com/ cool ringtones] [http://psmorrison.blogspot.com snorting valium] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=298&FORUM_ID=3&CAT_ID=3 cheap tramadol] [http://www.rso.cmich.edu/prevet/messageboard/000031d0.htm mp3 ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1071 cheap fioricet] [http://zellial.jubiiblog.de/ cheap ultracet] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$138 but xanax] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$137 vicodin online] [http://nodarel.blogdiario.com/ meridia online] [http://smallbald.blogspot.com best casino gambling online] [http://chuvak-org.blogspot.com valium dosage] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/citybix.htm xanax online] [http://elcnazel.blogdiario.com/ cheap prozac] [http://discussions.csbsju.edu/general/messages/25/tonywe-230.html cheap carisoprodol] [http://www.forumhosting.org/forum.php?mforum=ololitroc propecia online] [http://ersitget.jubiiblog.de/ lisinopril online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832197) cheap alprazolam] [http://www.csun.edu/learningnet/discussion/file.php?0,file=151 music ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$89 order alprazolam] [http://www.rso.cmich.edu/prevet/messageboard/000031d5.htm free real ringtones] [http://reltrdar.blogdiario.com/ but propecia] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$102 motorola ringtones] [http://domc4tvi.blogdiario.com/ soma] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1103 tenuate online] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$87 adipex online] [http://discussions.csbsju.edu/general/messages/25/rizo-242.html cheap meridia] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832239) samsung ringtones] [http://getelor.blogdiario.com/ free mtv ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=146 free qwest ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832200) cheap carisoprodol] [http://c4tacdom.jubiiblog.de/ sonyericsson ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1082 cheap clonazepam] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$112 free real ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1073 cheap diazepam] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/konevow.htm free mono ringtone] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/soseh.htm verizon ringtones] [http://caboel.blogdiario.com/ cheap clonazepam] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1139 wwe ringtones] [http://drongetpas.blogdiario.com/ didrex] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/pinyt.htm free sprint ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832195) buy adipex] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832202) free cingular ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=110 cheap tramadol] [http://mkiss47346.blogspot.com advice casino online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832240) free sharp ringtones] [http://www.forumhosting.org/forum.php?mforum=monoror cyclobenzaprine online] [http://www.forumhosting.org/forum.php?mforum=rellileto free sprint ringtones] [http://discussions.csbsju.edu/general/messages/25/rojyl-228.html valium online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=122 cheap meridia] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832244) free sonyericsson ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=313 free alltel ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=328 funny ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832247) ultracet online] [http://eralchi.blogdiario.com/ free music ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1067 valium online] [http://www.forumhosting.org/forum.php?mforum=fonewbur cialis online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=346 buy phentermine] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1143 mtv ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/hocij.htm cheap levitra] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1116 free ringtones] [http://www.forumhosting.org/forum.php?mforum=wolena clonazepam online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1127 verizon ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031b3.htm cheap viagra] [http://www.forumhosting.org/forum.php?mforum=cnaorboc buy ambien] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=342 nextel ringtones] [http://elllimacc87.blogspot.com lexapro and valium] [http://www.csun.edu/learningnet/discussion/file.php?0,file=131 cheap ambien] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=368 wellbutrin online] [http://www.forumhosting.org/forum.php?mforum=getboctroc wellbutrin online] [http://www.forumhosting.org/forum.php?mforum=pasletosit free tracfone ringtones] [http://www.forumhosting.org/forum.php?mforum=rolouacel free mp3 ringtones] [http://basacelta.blogdiario.com/ free real ringtones] [http://www.forumhosting.org/forum.php?mforum=escaffey online phentermine] [http://www.forumhosting.org/forum.php?mforum=pijasper cheap soma] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/vuzo.htm cheap diazepam] [http://www.forumhosting.org/forum.php?mforum=tevaith cheap norco] [http://bocvidom.jubiiblog.de/ fioricet online] [http://eltaget.jubiiblog.de/ cingular ringtones] [http://sitbasel.jubiiblog.de/ free real ringtones] [http://nodelolo.jubiiblog.de/ albuterol online] [http://www.forumhosting.org/forum.php?mforum=darerla polyphonic ringtones] [http://caviou.jubiiblog.de/ prozac online] [http://rolvidel.jubiiblog.de/ cheap cialis] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=315 ambien] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1102 celexa online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1093 propecia online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=149 samsung ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832223) motorola ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1118 funny ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832245) sprint ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=150 sprint ringtones] [http://cocoleto.blogdiario.com/ phentermine online] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$97 free free ringtones] [http://trrelvar.blogdiario.com/ free kyocera ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1114 buy zyban] [http://www.csun.edu/learningnet/discussion/file.php?0,file=158 mono ringtones] [http://discussions.csbsju.edu/general/messages/25/gulel-233.html ultram online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1088 online xenical] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/veco.htm real ringtones] [http://chibovi.blogdiario.com/ cheap xenical] [http://www.forumhosting.org/forum.php?mforum=chitrel cingular ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=331 free kyocera ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$122 free sonyericsson ringtones] [http://handspunyarns.blogspot.com valium overdose] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832209) ericsson ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=326 cheap fioricet] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$116 but soma] [http://liricbo.blogdiario.com/ wellbutrin online] [http://carolli.blogdiario.com/ fioricet online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1089 wellbutrin online] [http://www.forumhosting.org/forum.php?mforum=olositbo free sharp ringtones] [http://leeticarus.blogspot.com what does valium do] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=341 buy nexium] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1138 midi ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=156 free sonyericsson ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031c4.htm generic paxil] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832221) midi ringtones] [http://sand-stars.blogspot.com valium sale] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1086 ambien online] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$124 free sprint ringtones] [http://orladron.jubiiblog.de/ adipex online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=316 cheap ativan] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1091 buy nexium] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/zyxuwu.htm free sagem ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832199) ativan online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=336 free mono ringtones] [http://delricc.blogdiario.com/ cheap lorazepam] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=327 free ringtones] [http://taroelt.jubiiblog.de/ mono ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=147 free real ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031b2.htm generic ativan] [http://discussions.csbsju.edu/general/messages/25/gejobi-229.html buy phentermine] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/popydi.htm norco online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1142 ericsson ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$92 buy cialis] [http://www.forumhosting.org/forum.php?mforum=acdrago cheap ultram] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832229) nokia ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=129 cheap levitra] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832237) free real ringtones] [http://cacorol.blogdiario.com/ free ericsson ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1104 cheap ortho] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832211) free free ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=353 free samsung ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832206) cyclobenzaprine online] [http://relgetvar.jubiiblog.de/ wellbutrin online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=349 punk ringtones] [http://pasorbas.jubiiblog.de/ free cool ringtones] [http://vigetc.jubiiblog.de/ buy clomid] [http://livior.blogdiario.com/ free alltel ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1106 cheap lortab] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832207) online diazepam] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1130 sagem ringtones] [http://www.forumhosting.org/forum.php?mforum=sajohnst ativan online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1123 free motorola ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$105 nextel ringtones] [http://racalmon.jubiiblog.de/ buy meridia] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1115 free nokia ringtones] [http://algetca.jubiiblog.de/ paxil online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1132 sony ericsson ringtones] [http://silly-n.blogspot.com best bonus casino online] [http://delelro.jubiiblog.de/ sprint ringtones] [http://www.forumhosting.org/forum.php?mforum=vipasac free alltel ringtones] [http://www.forumhosting.org/forum.php?mforum=lirolsit buy xenical] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$130 tramadol] [http://www.forumhosting.org/forum.php?mforum=coeignus buy fioricet] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=347 polyphonic ringtones] [http://www.forumhosting.org/forum.php?mforum=rebangas buy carisoprodol] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$90 ativan online] [http://getnoel.blogdiario.com/ ambien online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832196) free alltel ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1097 clomid online] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/pecybu.htm generic alprazolam] [http://www.forumhosting.org/forum.php?mforum=notrocvi free samsung ringtones] [http://boeldron.jubiiblog.de/ free nokia ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1078 cheap adipex] [http://basor5or5.blogdiario.com/ free verizon ringtones] [http://www.forumhosting.org/forum.php?mforum=acrolbas kyocera ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832246) free tracfone ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/votebu.htm free qwest ringtones] __NOTOC__
<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}}}}
[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!


{{CatUp|Main Page}}
This <noinclude>page</noinclude><includeonly>section</includeonly> 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!
|-
| 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.
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.


See the official [http://www.lua.org Lua website] and the [http://en.wikipedia.org/wiki/Lua_(programming_language) Wikipedia] article for more information.
{{TitledBox/subheading|Introduction series - read these first!}}
{{CatList|Script Creation Walkthrough|Script Creation Walkthrough|Creating and running scripts.}}
{{CatList|Flowcharts|Flowcharts|Using diagrams to show the "flow" of a script.}}
{{CatList|Basic math|Basic Math|Working with numbers in a script.}}
{{CatList|String|Strings|Working with text in a script.}}
{{CatList|Bool|Booleans|Working with yes/no values in a script.}}
{{CatList|Variables|Variables|How to hold data in a static reference.}}
{{CatList|Conditional statements|Conditional Statements|Making scripts do different things in different situations.}}
{{CatList|Loops|Loops|Making a piece of code run multiple times.}}
{{CatList|Functions|Functions|Wrapping code in a useful function to be called upon later in a script.}}
{{CatList|Tables|Tables|Storing multiple objects in one.}}
{{CatList|Generic for|Generic for|Using a loop to iterate through a table.}}


{{TitledBox/subheading|Other Guides}}
{{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|How to Script Anything|How to Script Anything|Learn the basic methods to put together any script.}}
{{CatList|In-Depth Scripting Guide|In-Depth Scripting Guide|More ways to understand the dynamics of Lua.}}
{{CatListUrl|http://www.lua.org/pil|Programming In Lua|Guide to Lua by its creators. (partly out of date)}}


==Basic Lua==
{{TitledBox/subheading|Introductions to Concepts}}
{| width=100%
{{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.}}
{| cellspacing=5 cellpadding=5 border=0 width=100% style="background-color: #fdd; border: 2px dashed #f00;"
{{CatList|Introduction to Weapons|Intro to Weapons|An intro into the scripting of Weapons in Roblox.}}
{{CatList|ROBLOX Scripting How To: Data Persistence|ROBLOX Scripting How To: Data Persistence|What is data persistence?}}
{{CatList|Data Persistence Tutorial|Data Persistence Tutorial|A tutorial on understanding and using data persistence in your places.}}
{{CatList|How To Increase and Decrease Vector3 Values|Using Vector3 Values|Shows how to use math with Vector3s.}}
{{CatList|Leaderboards|Using Leaderboards|Creating your own leaderboards.}}
{{CatList|Random numbers|Random Numbers|Stopping the same thing from happening each time.}}
{{CatList|How To Make Plugins|How To Make Plugins|Shows how you can make your own Roblox Studio toolbars and buttons.}}
{{CatList|Tools|Using Tools|Creating your own tools.}}
{{CatList|HopperBins|Using HopperBins|The older version of tools, HopperBins.}}
{{CatList|String Patterns|Using String Patterns|What string patterns are and how to use them.}}


|width=48|{{CatImage || image=LuaIco2.png | link=Scripting | width=48px | height=48px }}
{{TitledBox/subheading|Reference}}
|'''[[Scripting|Basic Lua]]'''<br><small>A simple description of Lua, and how to use it.
{{CatList|Scripting|Scripting|An overview of scripting in Roblox, and a portal for in-depth articles.}}
{{CatList|Function Dump|Functions|A list of all the global functions.}}
{{CatList|Class Reference|Class Reference|All the types of Roblox [[RBX.lua.Instance (Object)|Instances]].}}
{{CatListUrl|http://www.lua.org/manual/5.1|Lua 5.1 Reference Manual|Official definition of the Lua language. (some features not available in Roblox)}}


|width=48|{{CatImage || image=LuaCode.png | link=Code Snippits | width=48px | height=48px }}
{{TitledBox/subheading|Example Scripts}}
|'''[[Code Snippits]]'''<br><small>Small bits of code that you can use in a larger script, or learn from.
{{CatList|Cookbook|Cookbook|Large list of small example scripts}}
 
{{CatList|How do I create a brick?|Creating a Brick|Basic tutorial on creating a brick using a script.}}
|width=48|{{CatImage || image=LuaCode.png | link=Full Codes | width=48px | height=48px }}
{{CatList|Debounce|IS:What is Debounce?|Explains what a debounce is, and what it's used for.}}
|'''[[Full Codes]]'''<br><small>Entire codes that have been released to be used in whatever.
{{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|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|Sounds|Using Sounds|Shows how to use events and work with Sounds.}}
==Function/Class reference==
{{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.}}
{| width=100%
{{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.}}
{| cellspacing=5 cellpadding=5 border=0 width=100% style="background-color: #fdd; border: 2px dashed #f00;"
{{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.}}
|width=48|{{CatImage || image=LuaCode.png | link=Function Dump | width=48px | height=48px }}
{{CatList|How to make text on a brick|How to make text on a brick|How to make words appear above a brick.}}
|'''[[Function Dump]]'''<br><small>Most of the functions currently available in Roblox Lua.
{{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.}}
|width=48|{{CatImage || image=LuaCode.png | link=Class reference | width=48px | height=48px }}
{{CatList|Terrain_Generation|Terrain Generation|Generating non-random terrain mathematically.}}
|'''[[Class reference]]'''<br><small>The main classes in Roblox Lua
{{CatList|Random_terrain|Random Terrain|Generating unique terrain randomly.}}
|}
{{TitledBox/end}}
 
==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.

Latest revision as of 06:13, 30 October 2023

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

Introduction series - read these first!
Script Creation WalkthroughCreating and running scripts.
FlowchartsUsing diagrams to show the "flow" of a script.
Basic MathWorking with numbers in a script.
StringsWorking with text in a script.
BooleansWorking with yes/no values in a script.
VariablesHow to hold data in a static reference.
Conditional StatementsMaking scripts do different things in different situations.
LoopsMaking a piece of code run multiple times.
FunctionsWrapping code in a useful function to be called upon later in a script.
TablesStoring multiple objects in one.
Generic forUsing a loop to iterate through a table.
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.
How to Script AnythingLearn the basic methods to put together any script.
In-Depth Scripting GuideMore ways to understand the dynamics of Lua.
Programming In LuaGuide to Lua by its creators. (partly out of date)
Introductions to Concepts
Using DHTMLExample of DHTML, a 2007 feature letting you display webpages during gameplay (before GUI was added in 2009).
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 LeaderboardsCreating your own leaderboards.
Random NumbersStopping the same thing from happening each time.
How To Make PluginsShows how you can make your own Roblox Studio toolbars and buttons.
Using ToolsCreating your own tools.
Using HopperBinsThe older version of tools, HopperBins.
Using String PatternsWhat string patterns are and how to use them.
Reference
ScriptingAn overview of scripting in Roblox, and a portal for in-depth articles.
FunctionsA list of all the global functions.
Class ReferenceAll the types of Roblox Instances.
Lua 5.1 Reference ManualOfficial definition of the Lua language. (some features not available in Roblox)
Example Scripts
CookbookLarge list of small example scripts
Creating a BrickBasic tutorial on creating a brick using a script.
IS:What is Debounce?Explains what a debounce is, and what it's used for.
Creating Restricted DoorsShows how to create a door that only certain people can enter.
One-way DoorsHow to create doors that go only one direction.
How to TeleportAn overview of teleportation of players.
Making an OnClicked ScriptShows how to use the Mouse to trigger weapons.
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.
Using PlayerAddedHow to use the PlayerAdded event.
How to Create Talking CommandsA guide on how to use the Chatted event.
How to Make Multi-Handle toolsCreating tools with more than one brick for a handle.
How to make text on a brickHow to make words appear above a brick.
How to Make Conveyor BeltsParts that move other parts.
How to Make RampsUsing CFrame to rotate parts.
Terrain GenerationGenerating non-random terrain mathematically.
Random TerrainGenerating unique terrain randomly.