# Understand 99% of scripts in 1h or less! Learn Luau here

After seeing how people normally create tutorials for programming languages I decided to make something that follows that exact format perfectly.

This is not a guide on how to do a specific action
this is one to do whatever action you want!
Most stuff is in the google slides

If I got anything down wrong or have an suggestion please post it here!
this took around 2 days to make.

54 Likes

Added a part explaining how to create instances and filled in a blank about how modulescripts work and how to network

Iâ€™d rather call it â€śLearn luau syntaxâ€ť or â€śRoblox Create Scripting summaryâ€ť, good contribution.

1 Like

Possibly but im working my way towards getting most things youâ€™ll need to know to create roblox games so I donâ€™t think that name would fit well

1 Like

1234567891234567890

1243567890-0987654321`12356789

Just so you know, exponents are (kind of confusing to explain). Hereâ€™s is some examples:

3^2 = 3 * 3
4^5 = 4 * 4 * 4 * 4 * 4
6^1 = 6

Basically, the numbers in bold determine how many times the number in front of it is multiplied by itself.

2 Likes

This is the only tutorial I have ever found useful.

Every tutorial I watch, it just always shows you a specific word, they say what it does, but they donâ€™t explain how to use it, and only this tutorial does.

1 Like

Adding on in simpler terms, exponentiation is just repeated multiplication. Unless someone really doesnâ€™t have a basic understanding of math, itâ€™s not confusing.

As for the modulus operator, it just returns the remainder of a division.

Ex: `10 % 2 = 0` because 2 goes into 10 evenly.
Ex: `15 % 4 = 3` because 4 cannot go into 15, but it can go into 12 (your quotient), and 15 - 12 = 3 (aka your remainder).

These can be applied to compound expressions as well.

1 Like

Even your examples are wrong buddyâ€¦

1 Like

omg
im an idiot

1234567890-098765432

1 Like

sorry i made a lot of this when i was sleepy

1 Like

Redid a lot of the guide
a whole lot
1234567384

Adding on, little amount of people know this, `[=[]=]` is a valid multi-line string token aswell:

``````print([=[
Hello
World
]=])
``````

``````--[=[
This is a function, x, for adding 2 numbers and returning the result
]=]
function x(a: number, b: number)
return a + b
end
``````

The `=` is also extensible, just add more `=` signs between the double `[` and `]` (make sure both sides have the same amount of `=`)

``````print([=====[