"> "> PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.

Tuple

Tuple

2 min

In Roblox, the tuple type refers to a list of Lua variables. If a Articles/Method|method accepts a tuple as an argument, that means it accepts multiple values. If a method returns a tuple, that means it returns multiple values.

As an example, the BindableFunction/Invoke|Invoke() method in BindableFunction accepts a tuple as an argument, meaning it can accept multiple arguments.

As another example, Workspace/FindPartOnRay|FindPartOnRay() returns a tuple. More specifically, it returns a Part and a DataType/Vector3|Vector3.

Tags:
  • lua
  • value
  • tuple