Sound responding

When a certain sound plays I want an entity to go to the entity that is producing the sound.
someone help please

You need to create a global boolean on top of a script, that you set to true when you start the sound and false when you stop the sound. With the boolean the script of the entity knows when the other entity, for example the player, is produces a sound.

var soundIsPlaying = false;

When the boolean is set to true, you can start with looking in the direction of the player entity.

if (soundIsPlaying === true) {

If you want to implant this into an existing script, make sure you do it in the right place.