Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is rbx lua and normal lua the same thing?

Asked by 8 years ago

I always been wondering is rbx lua and normal lua the same thing? or does rbx lua have a little bit of diffrent things and another question if i learned normal lua could i know how to script in roblox with what i learned?

2
Essentially yes. Roblox Lua has some added functions specific to the game and removed functions that could lead to editing or reading of files on the client for security of the players. Rbx.Lua is somewhat outdated, however is relatively the same to the normal Lua language. M39a9am3R 3210 — 8y
0
Oh ok awesome thank you TheEmoWu 35 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

Roblox's Lua extends Lua 5.1 by removing certain things such as the io library and most of the os library, and then inserting global values such as game (The base entry point for the DataModel) and Vector3 (An example entry point for a collection of functions for Vector3s including the constructor).

All of the code being run is implemented on top of scheduler, meaning that all your code runs inside of coroutines.

I've also been told that the __gc metamethod is disabled, and I know that the garbage collection was modified.

Ad
Log in to vote
0
Answered by
Scootakip 299 Moderation Voter
8 years ago

As far as I know, they're more or less the same. It's just that RBX Lua was modified for Roblox specifically and has certain parts of it that were made for Roblox.

Answer this question