Ok i was dumb back then chill

What would you say are the basics of the language? There are different opinions on this.

2 Likes

You realise that Roblox Studio had to be coded too without a game engine like itself n order to actually exist? You dont get a “simple result”. How do you think game engines existed?

I’m sorry, I realize I was unclear. I was referring to a basic understanding Lua as a language, not the Roblox API.

For instance, in Programming in Lua, the first section is entitled “The Language” and gives the reader everything they need to write simple programs. Types (such as nil and boolean), Expressions (such arithmetic, relational and logical operators; as well as concatenation, table constructors, and the length operator), Statements (control structures such as loops and if statements) , Functions (including variadic) , Iterators, and Coroutines are some of the topics discussed in this section. The second section is labeled “Tables and Objects” and the content contains some information on table-based Data Structures, Metatables and Metamethods as well as an introduction to Object-Oriented Programming in Lua. The third section is “The Standard Libraries” section and explains some of the functions in some of Lua’s standard libraries, such as the Math library, Table library and String library.

I don’t think you need to master anything to know the “basics” of Lua, but you should know something about most of topics I mentioned here on this post, even if you don’t know exactly how to use them. Then I would say you know the basics of the language. But this is just my opinion.

3 Likes

Literally that has nothing to do with what I said.

When I first started programming on roblox, I came across the lua book, and thought that the it looked pretty complicated. But now after I know some basics, it’s less intimidating and becomes a resource. I’d also just like to know, what is not included in the lua book that is there in roblox studio or vice versa?

1 Like

I guess most big programming books can seem pretty intimidating. I felt the same way when I started reading my “C++ Plus Data Structures”. But after a while it starts to come together in your mind.

Well Roblox has implemented their own version of Lua, now called Luau. It is based off of Lua 5.1, with some facilities of 5.2 included. The Roblox engineers added their own set of functions (some of which are probably written in C++ for performance, but can be called by Lua) known as the Roblox API.

One thing to watch out for is Roblox’s custom globals (documentation here), which, even though colored blue in Roblox studio as important words, are not found in other Lua implementations because they are technically part of the Roblox API. That is one of the benefits of an open-sourced programming language - you can change it to your needs (or wants).

There are several parts of Lua that Roblox either intentionally left out, or has yet to implement. One example would be “goto” statements (read the feature request here). Another example would be the Lua I/O Library. This would be pretty pointless and insecure to add because it just has to do with reading from and writing to files, something that is not really necessary in Roblox.

I hope this answers some of your questions.

2 Likes

I was quoting something you just said. Stop trying to steer the discussion away.

Stop being aggressive, everyone knows that Roblox studio had to be programmed. That doesn’t mean that I HAVE to use lua.org, when their is an easier and better engine created to help a lot of people.

You should if you want to properly learn Lua reliably. Also Lua is not a game engine

I never said you have to use lua.org, i was literally saying that your arguments dont make sense. How was that being aggressive?

This is not really an argument, in an argument, I feel like you fight for what you think is right. I am just peacefully stating that why I don’t want to use lua.org.

If it’s not gonna help making Roblox games, there’s not a need to learn it over something like python. Once again, I believe Roblox lua and lua are a bit different. I already know all the “basics” for lua. There’s not a need to go their. All I need to learn is in roblox studio, and that are all the events and built in functions made by roblox and what they do in game.

It will. It better explains Lua libraries that you will end up using to make your games.

They aren’t. If you take the new Luau syntax out of the equation, they aren’t at all.

1 Like

Hey I just edited my post a bit. Can you reply to the updated version.

Python is not going to help you make Roblox games.

Make sure to read this bit:

You have been using math.random() to generate pseudo-random numbers, you’ve been inserting values into tables using table.insert(), these are all part of standard libraries provided by Lua.

Not sure why you’re avoiding quite literally the most reliable resource for learning Lua with the pretext that “it’s boring”.

2 Likes

I already know all those stuff though. Here’s something that I can’t learn from lua.org: Events and built in function made by Roblox studios.

My point is those are provided by Lua.

That is too specific to be a counter-argument. The Developer Hub is for learning the Roblox API. This has always been my point.

Use lua.org for learning Lua
Use developer.roblox.com for learning the Roblox API

1 Like

Have you seen your posts? You keep objecting to anyone who says lua.org is a good site, by saying that it is no help at all. You deny everyone who says that peaspod and youtubers are a bad resource. Maybe you should reread your post again, because you basically answer your own question and not hear everyone’s opinions.

1 Like

Yeah it was provided by lua, but my point is that I don’t need to go to lua.org anymore. And I am using Roblox dev hub :slightly_smiling_face:

:man_facepalming:

Where will you learn actual Lua, not just API provided by Roblox, because the Developer Hub’s goal is to teach the Roblox API not the entire Lua language

2 Likes