Music Player
#1
Put the sound you want to play and a BooleanValue called Playing in the play button, then put a script inside it:
Code:
link(script.Parent.Clicked, function()
    if script.Parent.Playing.Value then
        script.Parent.Sound:stop()
        script.Parent.Playing.Value = false
    else
        script.Parent.Sound:play()
        script.Parent.Playing.Value = true
    end
end)

Players can then click the button to start and stop the music.
Reply


Messages In This Thread
Music Player - by Jacob__mybb_import1 - 10-17-2010, 02:13 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)