I'm a novice to coding, but I like Roblox and I heard Lua was a pretty easy language to learn, so I thought I'd try to learn it. So far, learning Lua is extremely overwhelming. I've read many stories of people teaching themselves how to program in this language by looking at the Wiki or looking through other people's code. I have no idea how you guys do it. I'm finding it quite difficult to figure out where exactly to use functions or where I can use if statements, etc.
I read the "How to teach yourself Lua" blog post and have been taking it's advice by starting small, I'm trying to make it so a you explode when you touch a brick. I go to the Wiki page on Explosions and I have no idea what to make of the example. It seems as though every page I go to on the Wiki, I have to constantly search up another thing that's mentioned in the Wiki page in order to get a loose understanding of what the heck I'm supposed to do. Things I didn't even know were a thing like "explosion.Blastradius" and such, the whole time I'm thinking "How am I supposed to remember all of this?"
I understand the basics of Lua, applying them is way above my head. How am I supposed to know when to use a function when I want to do something like make my guy's head spin or something? The Wiki doesn't help with this, it gives you an example and expects you to figure the rest out on your own. It doesn't tell you how to apply anything to making a game. I've tried looking elsewhere on Google and such (yes, I've looked at the Lua website) but no where does anyone show you how to apply any of this stuff to making games, but to be able to simply learn the language and everything else is up to you to figure out. I can't wrap my head around most of it.
Also, I've read that some aspects of the code (particularly print) are useless when it comes to actual game development. Is there any truth in that? How am I supposed to know what's useful and what's not? The whole thing just makes my head hurt. How can I make this whole process less overwhelming?
tl;dr: Having hard time learning language, how can I make the learning process easier?

1 comment
Edited to remove code block. Tab is being recognized as four space presses which is used to create code blocks as well in Markdown.