Creating Sound for games

I looked into trigger boxes, but still could not get it to stop playing once I left the area.