Lua Globals

사용되지 않는 항목 표시

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.

요약

함수

속성

  • 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.

함수

assert

Variant

매개 변수

value: Variant
errorMessage: string
기본값: assertion failed!

반환

Variant

collectgarbage

Variant

매개 변수

operation: string

반환

Variant

error

void

매개 변수

message: string
level: number
기본값: 1

반환

void

getmetatable

Variant

매개 변수

t: Variant

반환

Variant

ipairs

매개 변수

loadstring

Variant

매개 변수

contents: string
chunkname: string

반환

Variant

newproxy

매개 변수

addMetatable: bool
기본값: false

반환

매개 변수

pcall

매개 변수

func: function
args: Tuple

반환

Variant

print

void

매개 변수

params: Tuple

반환

void

rawequal

매개 변수

v1: Variant
v2: Variant

반환

rawget

Variant

매개 변수

index: Variant

반환

Variant

rawlen

매개 변수

반환

rawset

매개 변수

index: Variant
value: Variant

반환

select

매개 변수

index: Variant
args: Tuple

반환

setmetatable

매개 변수

newMeta: Variant

반환

tonumber

Variant

매개 변수

arg: Variant
base: number
기본값: 10

반환

Variant

tostring

매개 변수

e: Variant

반환

type

매개 변수

v: Variant

반환

unpack

Variant

매개 변수

list: table
기본값: 1
기본값: #list

반환

Variant

xpcall

매개 변수

args: Tuple

반환

Variant

속성

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.