Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make it when someone click a part audio ends?

2 answers

If the sound is already playing, you can stop the sound by using:

script.Parent.Sound:Pause() --Change script.Parent.Sound to where the sound is

or,

script.Parent.Sound.Playing = false --Change script.Parent.Sound to where the sound is

or, if you want to stop the sound completely, use

script.Parent.Sound:Stop() --Change script.Parent.Sound to where the sound is

2 comments

0

Lets call the music part mp and the one that stop the music stp ok

0

so mp is playing music but the player click the stp part will it make it so that when you click the stp it make the music stop one part from each other?

You can simply use

script.Parent.Sound.Playing = false

This discussion is preserved as it was. New answers, comments, and votes are closed.