Lua Globals

Mostrar obsoleto

The following is a list of functions and variables that are native to Lua. These functions can be used in a standard installation of Lua 5.1.4, though there are some differences in how some of these work on Roblox.

Resumo

Funções

Propriedades

  • A table that is shared between all scripts of the same context level.

  • A global variable that holds a string containing the current interpreter version.

Funções

assert

Variant

Parâmetros

value: Variant
errorMessage: string
Valor Padrão: assertion failed!

Devolução

Variant

collectgarbage

Variant

Parâmetros

operation: string

Devolução

Variant

error

void

Parâmetros

message: string
level: number
Valor Padrão: 1

Devolução

void

getmetatable

Variant

Parâmetros

t: Variant

Devolução

Variant

ipairs

Parâmetros

loadstring

Variant

Parâmetros

contents: string
chunkname: string

Devolução

Variant

newproxy

Parâmetros

addMetatable: bool
Valor Padrão: false

Devolução

Parâmetros

Devolução

pcall

Parâmetros

func: function
args: Tuple

Devolução

Variant

print

void

Parâmetros

params: Tuple

Devolução

void

rawequal

Parâmetros

v1: Variant
v2: Variant

Devolução

rawget

Variant

Parâmetros

index: Variant

Devolução

Variant

rawlen

Parâmetros

Devolução

rawset

Parâmetros

index: Variant
value: Variant

Devolução

select

Parâmetros

index: Variant
args: Tuple

Devolução

setmetatable

Parâmetros

newMeta: Variant

Devolução

tonumber

Variant

Parâmetros

arg: Variant
base: number
Valor Padrão: 10

Devolução

Variant

tostring

Parâmetros

e: Variant

Devolução

type

Parâmetros

v: Variant

Devolução

unpack

Variant

Parâmetros

list: table
Valor Padrão: 1
Valor Padrão: #list

Devolução

Variant

xpcall

Parâmetros

args: Tuple

Devolução

Variant

Propriedades

A table that is shared between all scripts of the same context level.

_VERSION

A global variable (not a function) that holds a string containing the current interpreter version.