> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/utilities/wait.md).

# wait

#### wait(timeSeconds: number): number, number

Yields the current thread until the specified amount of seconds have elapsed. The delay will have a minimum duration of 29 milliseconds, but this minimum may be higher depending on the target framerate and various throttling conditions. If the seconds parameter is not specified, the minimum duration will be used. This function returns:

Actual time yielded (in seconds) Total time since the software was initialized (in seconds)

{% hint style="warning" %}
[task.wait](https://create.roblox.com/docs/reference/engine/libraries/task#wait) is usually preferable to wait
{% endhint %}
