Categories
What is scripting?
We first need to know, what even is scripting? When we make a game in Roblox, we can build using tools, add stuff, configure, etc. But when we add a button, or if we want something to function, we would want to make it work the way we want it to. This is where scripting comes in handy.
Scripting is a set of instructions for the computer to follow. It was designed to be readable by both humans and computers. Learning how to script in Luau is like learning another language. Think of it this way; you're speaking English, and you have to speak to a foreigner, who speaks Spanish. You would have to learn Spanish, or translate, to be able to speak to that person. In this case, we're talking to a computer. We have to learn Luau (or some other programming language) to be able to give instructions to the computer.
You may have seen this line of code somewhere: print("Hello world!")
When you "print", you're sending something to the output (you're not actually printing). An output is basically stuff that's logged from a script, and is also used for debugging.
So, this line tells the computer "Please log 'Hello world!' into the output.". So in the output, you get: Hello world!