Stop (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
No edit summary
>MrNicNac
Use the template's property "object2" when naming more than one object in a template.
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = Stop
|name = Stop
|description = Stops a currently playing sound and returns the marker to the beginning of the sound file.
|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, AnimationTrack
|object = Sound  
|object2 = AnimationTrack
}}</onlyinclude>
}}</onlyinclude>



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