canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

Declare FunctionLuau✎

Declares a function where the node sits, instead of at the top. Wire a table into On Table for `function Table.name(...)`. Double-click it to open the function's graph, where it is the entry node with Body and the parameters.

Pending review

Declare Function() → ()−+BodyOn TableFunction
  • the language itself, so it works in Roblox and in Lune

Inputs

  • in:execution
  • On Table:tablemust be wired

Outputs

  • then:execution
  • Body:execution
  • Function:function

What it compiles to

Info

This node opens a block, so an example without a body inside it would show less than it hid.

Not reviewed yet