学ぶ
エンジンライブラリ
task

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
関数
spawn(functionOrThread: function | coroutine,...: Variant):coroutine
defer(functionOrThread: function | coroutine,...: Variant):coroutine
delay(duration: number,functionOrThread: function | coroutine,...: Variant):coroutine
wait(duration: number):number
cancel(thread: coroutine):()

APIリファレンス
関数
spawn
task.spawn(
functionOrThread:function | coroutine, ...:Variant
パラメータ
functionOrThread:function | coroutine
...:Variant
戻り値

defer
task.defer(
functionOrThread:function | coroutine, ...:Variant
パラメータ
functionOrThread:function | coroutine
...:Variant
戻り値

delay
task.delay(
duration:number, functionOrThread:function | coroutine, ...:Variant
パラメータ
duration:number
functionOrThread:function | coroutine
...:Variant
戻り値

desynchronize
task.desynchronize():()
戻り値
()

synchronize
task.synchronize():()
戻り値
()

wait
task.wait(duration:number):number
パラメータ
duration:number
既定値: 0
戻り値

cancel
task.cancel(thread:coroutine):()
パラメータ
thread:coroutine
戻り値
()

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。