void
No value. Return type of procedures. void init() is the script entry.
Syntax
Section titled “Syntax”void Name(T arg) { return;}Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”Nothing. Luau omits the return annotation (or uses () internally).
Luau emit
Section titled “Luau emit”(no return annotation)
Description
Section titled “Description”return; is valid. return expr; in a void function should be avoided. void is only a return type.
Example
Section titled “Example”void CreateLeaderstats(Player player) { return;}Emits:
const function CreateLeaderstats(player: Player) returnend