Task

task.wait

Yields the current thread until the given duration (in seconds) has elapsed, then resumes the thread on the next Heartbeat step.

Syntax

wait([duration: number])  returns  number