Try it in your browserpreview Source

DeferRoblox✎

Like Spawn, but the function does not start until the engine next resumes — use it when you want the current frame's work to finish first.

Pending review

Defer−+ThreadFunction
  • needs the Roblox engine — its datatypes, its DataModel or its scheduler
  • takes 0 to 8 inputs, set per node
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • in:execution
  • Function:functionmust be wired

Outputs

  • then:execution
  • Thread:any

What it compiles to

luau
task.defer(fn)

Not reviewed yet