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

ReturnLuau✎

Returns from the enclosing function.

Pending review

Return−+
  • the language itself, so it works in Roblox and in Lune
  • terminal — it ends the flow it is in

Inputs

  • in:execution

What it compiles to

double(n: number) → number−+Functionn2*+−Return−+result
The graph this output was compiled from.
luau
local function double(n: number): number
	return n * 2
end

Not reviewed yet