Hello, How to make that music stops whenever a player click the play button?
✓ ANSWER ACCEPTED
How to make music that stops when I click the play button?
1 answer
✓ Accepted answer
Create an TextButton, modify it a little bit then add these code:
if you dont have any sound on workspace or anything here:
local id = 'place the sound id here' local sound = Instance.new('Sound',workspace) sound.SoundId = 'rbxassetid://'..id
buttonnamehere.MouseButton1Click:connect(function() sound:Stop() end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
