Documentation Formatting
Each argument is listed with its name followed by its type in angle brackets (<>), indicating the kind of data it expects.
Example:
Title <string>Use case example:
Title = "Kuzu Hub"A ... before a <table> type means the function can take multiple arguments in a variable-length table.
Example:
Tree <...table: FruitName, FruitColor> -- Accepts multiple Fruit definitions, each as a table with a Name and Color.Use case example:
Tree = {
{
FruitName = "Apple"
FruitColor = Color3.fromRGB(255,0,0)
},
{
FruitName = "Orange"
FruitColor = Color3.fromRGB(255,165,0)
}
}A colon (:) inside a type means those are the arguments that the type expects.
Example:
Use case example:
A (): after a function type indicates the return type.
Example:
Use case example:
A (): void after a function type indicates it does not return anything.
Example:
Use case example:
<type or type> means the argument can accept either type.
Example:
Use case example:
A : followed by a type indicates a return value and its type.
Example:
Use case example:
Last updated
Was this helpful?