FunctionalTest
非推奨を表示
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
概要
方法
出力に赤いメッセージを印刷し、"TestService:" で始まる前缀を付けます。
条件が真の場合は印刷し、そうでない場合は警告を印刷します。
プロパティ
方法
Warn
()
条件が真の場合は印刷し、そうでない場合は警告を印刷します。
パラメータ
既定値: ""
戻り値
()
コードサンプル
This code would print Warning: this action is invalid to the output, in yellow text.
FunctionalTest:Warn1
local TestService = game:GetService("TestService")
TestService:Warn(false, "this action is invalid")