Try it in your browserpreview Source

Initialize VariableLuau✎

Gives a script variable its first value, and *is* its declaration — the variable is not declared separately above. Use it when the starting value has to be built from nodes rather than typed into the variables panel. Must sit in the main flow, before anything reads the variable.

Pending review

Initialize VariableValue
  • the language itself, so it works in Roblox and in Lune

Inputs

  • in:execution
  • Value:anymust be wired

Outputs

  • then:execution
  • value:any

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