Checkpoint (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
Created page with "<onlyinclude>{{Method |name = Checkpoint |arguments = {{type|string}} <var>text</var> |description = Prints "<samp>Test checkpoint: </samp>..."
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Tags: mobile web edit mobile edit
 
(13 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|name                = Checkpoint
|name                = Checkpoint
|arguments            = {{type|string}} <var>text</var>
|arguments            = {{type|string}} <var>text</var>
|description          = Prints "<samp>Test checkpoint: </samp>", followed by <var>text</var>, to the output, in <span style="color: blue;">blue</span> text.
|description          = Prints "<samp style="color: blue;">Test checkpoint: </samp>", followed by <var>text</var>, to the output, in blue text.
|object              = TestService
|object              = TestService
}}</onlyinclude>
}}</onlyinclude>
 
{{clear floats}}
==Example==
==Example==
This code would print <samp>Test checkpoint: example</samp> to the output, in blue text.
This code would print <samp>Test checkpoint: example</samp> to the output, in blue text.
 
<syntaxhighlight lang="lua">
<code lua>
game:GetService('TestService'):Checkpoint("example")
game:GetService('TestService'):Checkpoint("example")
</code>
</syntaxhighlight>


[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 06:12, 27 April 2023

Checkpoint( string text )
Returns nil
Description: Prints "Test checkpoint: ", followed by text, to the output, in blue text.
Member of: TestService

Example

This code would print Test checkpoint: example to the output, in blue text.

game:GetService('TestService'):Checkpoint("example")