Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make sound stop playing?

Asked by 9 years ago

So I have a game, and at the start there is a Welcome GUI, What I want to do is stop a sound from playing once it has been clicked. Here is what I have:

function onClicked()
    script.Parent.Parent.Parent:Destroy()
    game.Workspace.Sound:Destroy()
end
script.Parent.MouseButton1Click:connect(onClicked)

Any help?

1 answer

Log in to vote
1
Answered by
RedCombee 585 Moderation Voter
9 years ago

Sound:Stop()

That's all.

0
So if I wanted to play a new sound after the sound stopped, What would I need to do, because I tried wait? MrJogimico 25 — 9y
0
Sound:Play() RedCombee 585 — 9y
Ad

Answer this question