Warn (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens Created page with "<onlyinclude>{{Method |name = Warn |arguments = {{type|bool}} <var>condition</var>, {{type|string}} <var>description</var> |description = If <var>cond..." |
m Text replacement - "</code>" to "</SyntaxHighlight>" |
||
Line 10: | Line 10: | ||
<code lua> | <code lua> | ||
game:GetService('TestService'):Warn(false, "this action is invalid") | game:GetService('TestService'):Warn(false, "this action is invalid") | ||
</ | </SyntaxHighlight> | ||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 03:53, 27 April 2023
![]() | |
Returns | nil |
Description: | If condition is true, prints Warning passed: , followed by description, to the output, in blue text. Otherwise, prints Warning: , followed by description, to the output, in yellow text. |
Member of: | TestService |
Example
This code would print Warning: this action is invalid to the output, in yellow text.
game:GetService('TestService'):Warn(false, "this action is invalid")
</SyntaxHighlight>