Stop (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy added |
>MrNicNac Use the template's property "object2" when naming more than one object in a template. |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | |||
|name = Stop | |||
|description = Stops a currently playing sound and returns the marker to the beginning of the sound file, or, if called on an AnimationTrack, discontinues the running animation. | |||
|object = Sound | |||
|description = Stops a currently playing sound and returns the marker to the beginning of the sound file. | |object2 = AnimationTrack | ||
|object = | }}</onlyinclude> | ||
|}}</onlyinclude> | |||
|} | {{clear floats}} | ||
{{Example| | |||
<pre> | |||
game.Workspace.Player.Head.Sound:Stop() -- stops the sound | |||
</pre>}} | |||
[[Category:Methods]] |