Skip to content

task.sleep

functionwaits

Yields for a time in seconds and returns the time that passed. A negative time is an error, and so is a wait where the code cannot yield.

task.sleep(seconds: number) -> number
example
task.sleep(1)

Use it forpausing between rounds, or counting down the seconds before a race starts.

secondsHow long to wait.

Tip of the day

From: USBX

HOME Menu

Wii Menu

Wii Remote Settings