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.