Check (Method)

From Legacy Roblox Wiki
Revision as of 03:58, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</code>" to "</SyntaxHighlight>")
Jump to navigationJump to search
Check( bool condition, string description )
Returns nil
Description: If condition is true, prints "Check passed: ", followed by description to the output, in blue text. Otherwise, prints "Check failed: ", again, followed by description, but in red text.
Member of: TestService

Example

This code would print Check failed: example to the output, in red text.

game:GetService('TestService'):Check(false, "example")