概要
方法
向輸出打印紅色訊息,前缀為 "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")