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.
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|
<onlyinclude>{{Method
|<onlyinclude>{{Method|name = Stop
|name = Stop
|arguments =
|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.
|returns = [[nil]]
|object = Sound  
|description = Stops a currently playing sound and returns the marker to the beginning of the sound file.
|object2 = AnimationTrack
|object = [[Sound]]
}}</onlyinclude>
|}}</onlyinclude>
 
|}
{{clear floats}}
 
{{Example|
<pre>
game.Workspace.Player.Head.Sound:Stop() -- stops the sound
</pre>}}
 
[[Category:Methods]]

Latest revision as of 02:50, 30 December 2010

Stop( )
Returns nil
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.
Member of: Sound


Example
game.Workspace.Player.Head.Sound:Stop() -- stops the sound