Alright, perhaps I can provide you with a subjectively "helpful" suggestion.
Do not attempt to replicate the sample scripts provided to the extent of perfection. Rather, attempt to focus on the actual usability of the concept being described.
You can only accomplish this effectively by revising your problem-solving capabilities.
Firstly, in order to solve a problem, you must identify the given problem. This requires analyzing the available data, such as script errors, to compare to known knowledge that you previously acquired.
An example would be the following:
Suppose that I have a variable quantity of money, and I would like my money to have a dollar-symbol as the final character.
Money = 5;
print(Money + '$'); --This causes an error.
Well, feigning naivety, I am surprised to receive an error while executing the above Lua expression. I was even more surprised by the interpreter's response:
"attempt to perform arithmetic on a string value"
A seemingly cryptic message, yes? Well, I decide to use information I read about to solve this problem.
"arithmetic" refers to basic numerical manipulation. "strings" are merely sequences of ASCII/Unicode characters.
Since the message was "attempt to perform arithmetic on a string value", I can decipher that I attempted to numerically-manipulate a non-numerical ASCII/Unicode character. Thus, the solution is to replace my "+ '$'" expression with a valid operation such as concatenation.
And that is simply the nature of problem-solving.
Admittedly, my above example was rather basic. Nonetheless, the simplicity also provides a simple demonstration of the problem-solving process.
Consider learning about the "Top-Down Methodology." It may help you greatly. |