Variables
This page lists all the global variables that you can use with localscripts in the script builder.
The sandbox sets _G to a table that already has a set metatable, and is only shared between sandboxed scripts.
The sandbox sets shared to a table that already has a set metatable, and is only shared between sandboxed scripts.
On localscripts this is set to "Lua 5.1", because they only have Lua 5.1 syntax support. This doesn't mean they can't use newer Roblox features such as Signal:Once().
owner
A refrence to the Player running the script. Same as LocalPlayer.
Last updated