generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What's the difference between Java Script and RBX.Lua?

Previous Thread :: Next Thread 
supereminent is not online. supereminent
Joined: 17 Jul 2011
Total Posts: 523
20 Jun 2014 11:44 PM
I'm taking lessons for Java Script right now to start improving my coding, so it can be easier to script in Roblox. I've picked at a few things in Roblox but never really got it, and a friend told me that it would be easier if I learned Java Script. So I'm taking the lessons at CodeCademy and I noticed that it is very identical to RBX.Lua and I'm just wondering what differences there are between the two besides the symbols.

Thanks!
~Super
Report Abuse
nomer888 is not online. nomer888
Joined: 13 Feb 2010
Total Posts: 551
20 Jun 2014 11:49 PM
RBX.Lua is not Lua itself, ROBLOX didn't make the language. Lua and JS differ syntactually, which means the symbols used and the way the code is written is different. If your goal is to learn Lua, dive into Lua first, handling two syntaxes is much more confusing and complicated.
Report Abuse
supereminent is not online. supereminent
Joined: 17 Jul 2011
Total Posts: 523
20 Jun 2014 11:53 PM
I wish there was a place like CodeCademy that teaches RBX.Lua..or Lua..does anyone know a good place to learn RBX.Lua?
Report Abuse
nomer888 is not online. nomer888
Joined: 13 Feb 2010
Total Posts: 551
21 Jun 2014 12:07 AM
Free models, ROBLOX Wiki, learnxinyminutes' Lua tutorial (google it), youtube.
Best way to learn is to teach yourself. I've had four years or so experience with Lua, haven't learned anything from mostly all tutorials since I've already learned the contents of the tutorials from documentation and experimenting.
Report Abuse
dogwarrior24 is not online. dogwarrior24
Joined: 10 Nov 2010
Total Posts: 1401
21 Jun 2014 01:09 AM
Google 'wiki roblox cookbook'
It only teaches you basic things, but it can get you started.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
21 Jun 2014 10:40 AM
If you actually want to learn how the languages work, you should learn something that doesnt have any behind the scene magic like garbage collection or variables which magically change their type according to what you assign to them.

Learn the basics of C or C++ (the basics are largely the same so doesnt really matter which)

Especially pointers.
Report Abuse
SigmaTech is not online. SigmaTech
Joined: 28 Jan 2010
Total Posts: 643
21 Jun 2014 11:47 AM
Whoa. It's radio. Anyway, I highly recommend Codeacadmey.
Report Abuse
WeaselWeasel is not online. WeaselWeasel
Joined: 09 Jun 2014
Total Posts: 91
21 Jun 2014 12:35 PM
There's no space between "Java" and "Script".
JavaScript is a programming language, Java is an entirely different programming language, Lua is an entirely different programming, and RBX.Lua is a version of Lua made for Roblox (slightly different).

JavaScript is nothing like Lua. It has syntax more akin to C++. Lua does its own thing when it comes to syntax.

The languages are nowhere near the same.
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
21 Jun 2014 12:40 PM
JavaScript and Lua are extremely similar.

The most obvious difference is the ALGOL (C) like block grouping with { and } in JavaScript, as opposed to Lua's named labels (do end, repeat until, then end), but this is just a simple cosmetic difference.

They both are "semi functional" languages which allow functions to be values, and both use hashtables as the main sort of object. Although, again, C-like (Java-like) array indexing starting at 0 instead of 1 is used in JavaScript.

In addition, JavaScript differentiates between objects and arrays by assigning arrays a "prototype" which gives them default properties & methods. This sort of constructing and prototyping is really one of the only features that JavaScript has that Lua does not (directly), but this can be done also in Lua using metatables and constructing functions.

They are extremely similar.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image