local sound = Sound.new("music.mp3") local channel = sound:play() --after some time Timer.delayedCall(5000, function() channel:stop() end)