튜플

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

A tuple is a list of values. Many methods and callbacks in the Roblox Engine API accept and return multiple values, but the API Reference says "Tuple" instead of those values.

매개변수

If a method or callback accepts a tuple as a parameter, then it accepts multiple values. For example, the API Reference shows that the BindableFunction:Invoke() method accepts a "Tuple" as a parameter, so it accepts multiple arguments.


BindableFunction:Invoke(1, true, "string", Vector3.new(0, 0, 0))

반환값

If a method or callback returns a tuple, then it returns multiple values. For example, the API Reference shows that the Players:GetUserThumbnailAsync() method returns a "Tuple", so it returns multiple values. The first return value is a Content URL, and the second is a boolean.


local Players = game:GetService("Players")
local userId = 156 -- builderman
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
print(content, isReady) -- rbxthumb://type=AvatarHeadShot&id=156&w=420&h=420 true
©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.