I learned how to script on the wiki and the video tutorial a little but, I don't know how I'm supposed to use it inside a game. I was planning on making a little deadzone-like game but with the things I know, I don't know how I'm supposed to. It seems really complicated looking at other people's scripts with a bunch of lines and codes and I'm wondering, "How does someone just remember to put codes that exact way for a game to succeed?" Please, If you can, PM me on my roblox account if you could help.
How to use LUA scripts?[ANSWERED]
2 answers
Also, keep in mind that most programmers or scripters do not remember EVERYTHING. We learn the basic concepts of scripting, than we use logic and problem solving to figure out how to set up code.
After that, putting it together is a matter or memorization and looking up the parts you forgot.
Take something such as :BreakJoints(). I know that exists in Roblox, but I forget about it once in a while. I look up things constantly just to remind myself how things work.
If you know Algebra and you can type on a computer, you can learn to script. The hard part is having the creativity to create something new.
Computers are dumb, remember that. You have to tell them EVERYTHING they need to do in order to get the result you want. That is the part of scripting and programming that a lot of newbies don't understand at first. Once you get that down, you are ready to learn and develop.
I wish you luck in learning the ways of Lua!
3 comments
Thanks. I'm not good at algebra so I won't really succeed :P
Basic algebra, aka variables and what they mean/represent is all you really need to know to script, so don't worry about it.
Oh
Well, coding is mainly about memorization, common sense, and intense thinking. You may have everything from the Wiki stuffed in your brain, but not know how to use it. I recommend viewing various YouTube videos on this subject because it's harder to type it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Is this not?
The complexity you see in most code is directly because of iteration. Ignoring scripted events, the code that makes games run typically starts as a single, simple snippet of code. Then, more simple alerations or additions are made. Code that first only renders four specific tiles turns into code that renders any number of any kind of tile, simply because smaller additions are made over time.