Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Lua Understanding The Difference Between Lua And Lua Variants

Mathematical

Silver Coder
Hey there.

I'm writing this as a tutorial post for people looking to into learning Lua. What I'm going to be covering is both the official Lua language itself and all of it's variants.

When I say "variants", I mean any game or piece of software that uses it's own version of Lua, with custom APIs and keywords. The online, building game, ROBLOX, uses it's own version of Lua called "RBLXLua". This Lua variant differs heavily from the actual Lua, as it includes some of it's own keywords, functions, and APIs that aren't in the actual Lua(For example, wait(), is a RBLXLua keyword/function, yet it doesn't exist in actual Lua).

The issue with Lua variants is that once you become acquainted with them, it may be hard to drop-out of using that variant as you've gotten used to writing in it. I had this issue after switching from RBLXLua to the actual Lua. I had no clue on what I was doing when it came to writing actual Lua code, as I had gotten so used to writing and working in ROBLOX. Of course, overtime, I managed to successfully switch to actual Lua.

My suggestion would be to first acquaint yourself with the actual Lua( ). This can give you a taste of what the language is really like and can give you an idea of what you'll be working with. Learn everything from basic debugging to functions and tables, and after that, move onto the game or piece of software that you want to do your Lua development in. Since you learned the actual Lua prior to using the modified Lua variant, you'll have an idea on what most keywords and functions do, but there may be some new things you'll need to learn for the variant.

At the end of the day, it's important that you understand the difference between the actual Lua and any of it's variants that base themselves off of the language. The same thing goes for any other language that can easily be modified to better suit something else.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom