Warn (Method)

From Legacy Roblox Wiki
Revision as of 05:46, 18 February 2012 by >JulienDethurens (Created page with "<onlyinclude>{{Method |name = Warn |arguments = {{type|bool}} <var>condition</var>, {{type|string}} <var>description</var> |description = If <var>cond...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Warn( bool condition, string description )
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")