Thanks, I'm glad that worked for you, but the real magicians are Conjured and Plystire. I just dabble in the black art of fpi. LOL
Of course, to get only 5 seconds you'll have to use a timer.
:state=0,plrdistwithin=100:state=1
:state=1:animate=1,loopsound=[your_sound, like FCV said above],timerstart
:state=1,timergreater=5000:animate=0,stopsound,state=2
I'm not sure about the animate=0. It should probably be your "idle" animation.
Alternatively, you might use "suspend".
:state=0,plrdistwithin=100:state=1
:state=1:animate=1,loopsound=[your_sound, like FCV said above],timerstart
:state=1,timergreater=5000:suspend
That should disable the entity, stopping all scripts, but leave it visible.
Best.