Skip to content

void

Type

No value. Return type of procedures. void init() is the script entry.

void Name(T arg) {
return;
}

None.

Nothing. Luau omits the return annotation (or uses () internally).

(no return annotation)

return; is valid. return expr; in a void function should be avoided. void is only a return type.

void CreateLeaderstats(Player player) {
return;
}

Emits:

const function CreateLeaderstats(player: Player)
return
end

init · function