How to Script LUA

by build it code it use it in Circuits > Computers

1229 Views, 2 Favorites, 0 Comments

How to Script LUA

Screen Shot 2021-02-04 at 1.32.59 PM.png
Screen Shot 2021-02-04 at 1.33.59 PM.png

Hello, And welcome to the instructable. Today I am goin to teach you how to script in LUA. Now, you may be wondering, Why the heck would I want to script in LUA over Python or JAVA. Well LUA is a light weight easy to learn scripting language, also it is used in roblox studio. It is not a bunch of 1's and 0's it is like block coding except the blocks are words.

Supplies

A devise where you can type things.

Finding a Free and Easy to Use Scripting Platform.

Screen Shot 2021-02-02 at 1.19.10 PM.png

I would recommend https://repl.it/, because it is free and there are over 60 different languages available to you.

Signing in is easy all you have to do is sign in with an existing google account. once you are in, it will ask you what language you use click LUA, and one other random code (python recommended for the other option).

once you are in click the plus sign on the top right and enter the LUA option and title it whatever you want (recommended LUA notes or something).

In This First Video I Am Going to Teach You the Most Basic of the Basics in LUA, How to Print Something.

Screen Shot 2021-02-05 at 2.02.57 PM.png

video one

Yes you have to download it ):

My computer was lagging because I was downloading android for a raspberry pi.

(possible next instructableđź‘€)

This first part is the very basics on how to printing or make a program write something.

In This Video I Will Be Teaching You Guys Variables.

In This Video I Will Be Showing You Guys How to Do Functions.

video three

(by now you have probably noticed that the songs are all the same but that is all I had):

If Then Statements

Wrap Up

Outro

That should wrap up the basics of scripting in LUA, if we hit 20 favorites I will make another instructable in intermediate level. Overall this project took 22 hours total. Possible new instructable about raspberry pi coming soon, and don't forget to comment the code. :)