backupRoswaal has moved to roswaal.app. These pages are a backup copy.Go to roswaal.app

FunctionLuau✎

Declares a function, written at the top of the file. It is the entry node of the function's own graph, and its parameters are data outputs there.

Pending review

Function() → ()Function
  • the language itself, so it works in Roblox and in Lune
  • an entry point: nothing wires into it

Outputs

  • then:execution
  • Function:function

What it compiles to

greet(string) → ()FunctionwhostringPrintValue
The graph this output was compiled from.
luau
local function greet(who: string): ()
	print(who)
end

Not reviewed yet