You may be a beginner in Roblox so that you want to know how to script Lua on Roblox. If you want to do this, it is important for you to know that it will need a patience and diligence. So, if you are sure that you are patient and diligent, you will be able to do script Lua.
If you want to do scripting, the first thing that you have to do is opening your Roblox Studio. You have to make sure that the Output (View>Output), the Explorer (View>Explorer), the Properties (View>Properties) and the Command Bar (View>Command Bar) are open. However, they should be opened by default. It is important for you to know that it will be easier if you script with the Run without character option “Run” instead of “Play”. If you want to switch it, you have to click the down arrow underneath the Play button and then you have to choose the Green arrow, as opposed to the Blue arrow with Roblox avatar.
To make a script, you will have to make a new place or edit one with Studio. Let’s take an example. If you want to make a place called “testplace”, you have to right click on the Explorer box and then Workspace>Insert Object and choose Script. It should put the script in Workspace. Then, you have to Double click on it to be able to view its source. You will have to see: print ‘Hello World!’. Now, you have to go and click on the Play button. You should see “Hello World!” coming up at the Console/ Output log. It is important to know that “print” is the function and “Hello World!” is the parameter and it is basically a manipulable value which is given to the function.
You are probably still confused about Lua. Well, Lua is the current programming language which is used on Roblox. It uses lines of code to tell the game what to do in the certain place or time. You are able to use Lua to express your ideas. If you use Lua, it can be hard or easy and it will depend on your scripting skills. So, as we mentioned earlier that if you want to do scripting, you will need to be patient and diligent.
It will be easier to understand if you watch some tutorial about how to script Lua for Roblox in Youtube. If you try to search it on Youtube, there are several videos that you can watch to help you understand how to script Lua. Those are Roblox How To Script – Beginners Roblox Scripting Tutorial by AlvinBlox, Roblox Lua Scripting Tutorial 1 – Basics and Navigating Studio by Wrathsong, How-to: Lua Coding Introduction (Hour of Code Pt.1) by Roblox, Tutorial – Scripting Basics by Roblox and many more.