Script Function (Value)Luau✎

The same call where a value is wanted — inside a table, an argument, an expression. No execution wire, and it gives the first return value.

Pending review

Script Function (Value)
  • the language itself, so it works in Roblox and in Lune
  • pure — no execution pins, wire it anywhere

Outputs

  • result:any

What it compiles to

Script Startdouble(n: number) → numberresultnumber21nPrintValue
The graph this output was compiled from.
double(number) → numberFunctionnnumber2*Returnresult
luau
local function double(n: number): number
	return n * 2
end

print(double(21))

Not reviewed yet